Skip to main content
Visitor II
July 16, 2024
Question

About running the Authentication routine serial return 6 in STSAFE-A110 in stm32l151 using X-CUBE SAEFA1

  • July 16, 2024
  • 1 reply
  • 1305 views

我使用 X-CUBE SAEFA1 在 stm32l151 上的 STSAFE-A110 中运行身份验证例程,串口返回 6 或卡住,寻求帮助

ll132435_0-1721119519161.png

 

 

    This topic has been closed for replies.

    1 reply

    ll132435Author
    Visitor II
    July 16, 2024

    I use X-CUBE SAEFA1 to run the Authentication routine in STSAFE-A110 on stm32l151, the serial port returns 6 or is stuck, ask for help

    ll132435_0-1721119726889.png

     

    ST Employee
    July 17, 2024

    Hi @ll132435 ,

    Thanks for your interest in STSAFE-A product.

    The error 6 is STSAFEA_BUFFER_LENGTH_EXCEEDED which append only when you are requesting more bytes than the STSAFE-A internal buffer (507 bytes) but in the authentication() example, there is a read of 4 bytes so this issue shouldn't happened.

    Could you please share the version of the X-CUBE-SAFEA1 package ?

    Could you also please share the init of the STSAFE-A110 before calling authentication() ?

    Thanks,

    Best Regards,

    Benjamin

    ll132435Author
    Visitor II
    July 18, 2024

    Thanks for your reply.

    I use the routine generated by STM32CubeMX, and the package X-CUBE-SAFEA1 is version 1.2.2. I can share my.ioc file with you. I use IIC2 and USART2 for serial port

    ll132435_0-1721282836712.png

    I don't have  configurations when I create a project