Skip to main content
Associate III
February 7, 2024
Solved

IOTA L2Sec stream fails due to STSAFE setup error

  • February 7, 2024
  • 2 replies
  • 2492 views

Hello,

I'm trying to run the X-CUBE-IOTA1 v3.0 on the B-U585I-IOT02A board, but after following the tutorial in UM2606 I get the following error when trying to send L2Sec Stream:

SedCore_0-1707329532392.png

What can be the reason of the pairing_stsafe result failing, please?

Best regards,

@Jocelyn RICARD @Benjamin BARATTE 

This topic has been closed for replies.
Best answer by Benjamin BARATTE

Hi @SedCore,

 

I think this issue is related the change of the STSAFE-A power management on B-U585-IOT2A board.

The error reported (1) is STSAFEA_COMMUNICATION_ERROR which generally occurs on the first STSAFE-A commands when the STSAFE-A is not responding on the I2C.

According to the User Manual of the B-U585-IOT2A board, the PF11 pin shall be 0 to enable the STSAFE-A.

In the X-CUBE-IOTA v3.0.0 x-cube-iota1/Projects/B-U585I-IOT02A/Applications/IOTA-Client/NetXDuo/App/STSAFE/stsafea_service_interface.c

in the HW_IO_Init, you have this line which set the PF11 to 1 :

 

HAL_GPIO_WritePin(STSAFEA_VREG_GPIO_PORT, STSAFEA_VREG_PIN, GPIO_PIN_SET);

 

Therefore, this disabled the STSAFE-A.

if you replace the line by HAL_GPIO_WritePin(STSAFEA_VREG_GPIO_PORT, STSAFEA_VREG_PIN, GPIO_PIN_RESET);

It should enable the STSAFE-A and you should be able to run the test code.

Best Regards,

Benjamin

2 replies

Benjamin BARATTEBest answer
ST Employee
February 8, 2024

Hi @SedCore,

 

I think this issue is related the change of the STSAFE-A power management on B-U585-IOT2A board.

The error reported (1) is STSAFEA_COMMUNICATION_ERROR which generally occurs on the first STSAFE-A commands when the STSAFE-A is not responding on the I2C.

According to the User Manual of the B-U585-IOT2A board, the PF11 pin shall be 0 to enable the STSAFE-A.

In the X-CUBE-IOTA v3.0.0 x-cube-iota1/Projects/B-U585I-IOT02A/Applications/IOTA-Client/NetXDuo/App/STSAFE/stsafea_service_interface.c

in the HW_IO_Init, you have this line which set the PF11 to 1 :

 

HAL_GPIO_WritePin(STSAFEA_VREG_GPIO_PORT, STSAFEA_VREG_PIN, GPIO_PIN_SET);

 

Therefore, this disabled the STSAFE-A.

if you replace the line by HAL_GPIO_WritePin(STSAFEA_VREG_GPIO_PORT, STSAFEA_VREG_PIN, GPIO_PIN_RESET);

It should enable the STSAFE-A and you should be able to run the test code.

Best Regards,

Benjamin

SedCoreAuthor
Associate III
February 8, 2024

Thanks for your advice, now the encryption using STSAFE is working well. :thumbs_up::thumbs_up:

But unfortunately, the message is not being sent, due to a DNS error when trying to connect to the Tangle network at this address: https://api.lb-0.h.chrysalis-devnet.iota.cafe

There is no public network running the Chrysalis protocol anymore, so the X-CUBE-IOTA1 package should be updated.

Explorer
March 20, 2024

Hello @SedCore 

 

I'm also looking at this project. Is there any way to use chrysalis API?

 

Thank you.

Andrea Palmieri
ST Employee
February 14, 2024

Hello @SedCore 

the X-CUBE-IOTA1 package is going to be archived and will not be updated.

 

Kind regards

Andrea

Explorer
March 20, 2024

Hello @Andrea Palmieri 

 

Is there any plan to make another repository for IOTA?

 

Thanks