Need help getting started with STSAFE-A110 (X-NUCLEO-SAFEA1B) on STM32H503 Custom Board
Hello everyone,
I am looking for some help getting started with the STSAFE-A110 in a new project.
My Setup:
-
MCU: Custom board using STM32H503CBT6
-
Secure Element: X-NUCLEO-SAFEA1B expansion board
-
Software: STM32CubeIDE with the X-CUBE-SAFEA1 middleware added via CubeMX
-
Output: I am using the USB CDC Virtual COM port (Classic Middleware) for my output. I have not enabled and am not using UART.
The Problem:
I am completely stuck trying to get the initial communication working. I cannot seem to establish communication between the STM32H5 and the STSAFE-A110 through I2C, and I cannot get StSafeA_Init() to initialize the STSAFE properly.
I have tried reading the user manual (UM2646 - Getting started with the X-CUBE-SAFEA1), but I find it extremely confusing. It does not clearly outline the necessary steps that I need to take to start the project properly from code generated by CubeMX.
What I need help with:
Could someone provide a clear, step-by-step guide on how to actually bring up the STSAFE-A110 from a blank CubeMX project? Specifically:
-
What exactly needs to be configured in CubeMX for the X-CUBE-SAFEA1 middleware to work?
-
What is the exact sequence of initialization calls required in
main.cto start talking to the chip?
Any guidance or a minimum working example would be greatly appreciated.
Thank you!
