2023-04-25 10:42 AM
Hello,
I am using a Nucleo-F401RE board with the X-Nucleo-SafeA1 expansion board (which claims it is compatible with any Nucleo development board).
I am trying to use the software package that is shown in the link below:
https://www.st.com/en/embedded-software/x-cube-safea1.html
When I use UM2646 to try to bring it up and create a simple example, but there are so many #include issues and file reference issues that it doesn't feel like I'm using a proper tutorial to learn how the firmware/hardware works. I followed the steps in Section 3.8 of the UM2646 and all the issues are still present. (Note: I have included the paths and symbols and source locations that are needed).
I have two questions:
1) Are there any tutorials that are similar to TouchGFX/BLE on bringing the STSAFE up?
2) Has anyone who has gotten the Nucleo-SAFEA1 working on a Nucleo board that's NOT the NUCLEO-L476RG board that they use in the one example? If so, what steps did you have to take?
2023-05-09 02:26 AM
Hello KMew,
I don't know about the software package you're referring to. My best advice would be to read the user manuals in the documentation part.
/Osman
2023-05-12 07:28 AM
Hello @KMew,
Thanks for you interest in STSAFE-A110 integration.
Regarding the integration of STSAFE-A, the example are based on STM32 Nucleo BSP which is not compatible with a STM32CubeMX generated project.
I can propose a quick walkthrough in order to start your integration.
First you can do the integration in 2 steps:
STSAFE-A110 Core integration
STSAFE-A110 Service integration
After this step, you should be able to have the StSafeA_Echo() working.
For the cryptographic services, this is mandatory if you want to use the command authentication mechanism and/or specific use case like the StSafeA_Wrap()/StSafeA_Unwrap()
Crypto interface integration
Regarding the secure channel usage, you need first to do the pairing of your STSAFE-A.
In the stsafea_crypto_interface.c, I do not use the storing of the STSAFE-A default keys in STM32 flash to avoid to port the flash programming depending on the flash memory size.
Let me know if you manage to make your porting.
Best Regards,
Benjamin