cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to integrate stsafe-A110 in a project based on ESP32. I cannot have i2c working (e.g. StSafeA_Echo() is failing ...) .

Thierry Didi
Associate II

Would it be possible to have a description of i2c read / i2c write commands (start condition, ack, end condition ... ). I cannot find this description in STSAFE datasheet.

best regards,

Thierry

3 REPLIES 3
Thierry Didi
Associate II

Hello, here is one precision about what "not working" means:

  • I2C Read and I2C write functions seem to be working (i.e. they return OK, while if I change the I2C address for instance, they fail)
  • But the device always replies with a first byte equal to 0X01, and next bytes equal to 0XFF, 0XFF ....

Do you have any idea about where this could come from ?

Best regards

Thierry

Benjamin BARATTE
ST Employee

Hi Thierry,

Could you share a capture of the I2C communication between your ESP32 and the STSAFE-A110 ?

Error 0x01 reported by STSAFE-A110 is general communication error, generally link to wrong CRC at the end of the command.

Thanks,

Best Regards,

Benjamin BARATTE

Thierry Didi
Associate II

Hello Benjamin,

Thanks for you reply - I have finally solved my issue. I was not executing the proper I2C sequence for reading the response. I have rewritten my read() service based on some esp32 examples (my project uses esp32) and it works now,

Best Regards

Thierry