Skip to main content
Thierry Didi
Associate II
September 21, 2021
Question

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

  • September 21, 2021
  • 3 replies
  • 1300 views

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

    This topic has been closed for replies.

    3 replies

    Thierry Didi
    Associate II
    September 21, 2021

    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

    ST Employee
    December 3, 2021

    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
    December 3, 2021

    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