STM32U5 B-U585I-IOT02A run my own application with SBSFU example of STM32CubeU5
Hi,
I am trying to modify the SBSFU example provided with STM32CubeU5 to run my own application. I generated the code with STM32CubeMX for IAR by enabling TrustZone and leaving the default values set by STM32CubeMX. I wrote my code, deleted all the files in the SBSFU_Appli folder, copied the files generated by STM32CubeMX inside SBSFU_Appli and configured the IAR project to use the prebuild_s.cmd, prebuild_ns.cmd and postbuild.bat scripts. I have replaced the stm32u585xx_flash_ns.icf and stm32u585xx_flash_s.icf files generated by STM32CubeMX with the stm32u585xx_flash_ns.icf stm32u585xx_flash_s.icf files provided with SBSFU from STM32CubeU5. In the main.c file of the secure project I included the region_defs.h file and defined #define VTOR_TABLE_NS_START_ADDR NS_CODE_START. I can compile the code and generate the binaries, and the SBSFU_UPDATE.bat script for loading the binaries finishes correctly. When I start the microcontroller, SBSFU is executed but it stops right after printing in the console "Jumping to the first image slot" and my application does not start.
Do any other changes need to be made to run the application correctly? Am I skipping any steps?
Thanks
