Adding SBSFU_BOOT to Your STM32 Project
Hello,
I have created my own program using TrustZone and I want to add the SBSFU_BOOT project to it. How can I do this?
Hello,
I have created my own program using TrustZone and I want to add the SBSFU_BOOT project to it. How can I do this?
Hello
There are slight differences between the project example provided with SBSFU_Boot and a "standard" secure/non secure project generated by STM32CubeMX.
For instance, examples uses a startup file written in C instead of assembly.
So, you may need to replace this assembly file by the c file.
As a general point the example provided with SBSFU_Boot is the reference that will help you.
The main point is the linker file.
Either you reuse same linker file as in the example. In that case you need to adapt your project to be able to include this "region_defs.h" file (you can find how this is done in example)
Other possibility is to manually change your linker file with hardcoded addresses but this may lead to issue when you decide to change the mapping.
Finally, you will need to add the postbuild command to generate the signed images. Here this is copy paste of commands.
I hope this will help
Best regards
Jocelyn
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.