2022-06-29 12:41 AM
Hi,
I'm trying to implement secure boot and secure firmware update on STM32F415RGT6 but I'm having hard time with SBSFU code.
I already compiled the example STM32F413H-Discovery making adjustment for flash and ram in linker file. Then I runned the SBSFU on microcontroller but this is what I get from console log.
I stepped into debug session and found that the microcontroller keeps rebooting because function SE_IsUnprivileged() always return 1, which means non-privileged mode.
It may be a wrong memory mapping??
Thanks
2022-06-29 04:42 AM
Hello @G.Poma2
when you modify the mapping in linker file you also need to adapt the MPU regions.
So, most probably the MPU mapping is not in line with your new mapping falling in fault exception.
You can first try to deactivate the MPU related flag (SFU_ISOLATE...) but best would be to fix directly the MPU mapping.
Best regards
Jocelyn