cancel
Showing results for 
Search instead for 
Did you mean: 

SBSFU keeps rebooting - SE_IsUnprivileged() always return 1

G.Poma2
Associate

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.

0693W00000Nt1U6QAJ.png 

I stepped into debug session and found that the microcontroller keeps rebooting because function SE_IsUnprivileged() always return 1, which means non-privileged mode.

0693W00000Nt1UYQAZ.pngIt may be a wrong memory mapping??

Thanks

1 REPLY 1
Jocelyn RICARD
ST Employee

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