Hi all,
I’m currently working with the nrf9160 sip on a bare metal firmware project. I know the official support path is only with Zephyr OS but I’m facing an issue I’m not able to solve so far.
I want to take advantage of the Trustzone feature, to do so I created a minimal bootloader running in secure zone and responsible for setting up part of the flash/SRAM and peripherals as non-secure before trying to jump in the non-secure application. For some reasons, the bootloader get a hard-fault when it tries to load the reset handler of the non-secure app.
In order to reduce the unknown, I ported the SPM sample code provided as reference to my bootloader. Here is the debug output I’m getting:
Here is the bootloader code:
Besides, initializing the non-secure flash/SRAM area and peripherals, is there anything else I should take of?