I am trying to run the example for ARMCM33_DSP_FP_TZ code provided in Keil MDK on a new Cortex-M33 MCU by our company.
I have made necessary edits to the linker script to assign the correct values of secure and non-secure memory regions.
When I run the code on a simulator, I see the non-secure stack pointer and reset handler address on the address bus but the program does not continue to execute. It returns back to the secure code where an infinite while loop is present.
The MCU tries to branch to the non-secure reset handler but fails at that point and returns to secure main function.
Can someone point me as to why this may be happening?
Thanks in advance.
The problem was with SAU setup. When the SAU was configured properly using partition header file, the jump to Non-Secure Reset Handler was successful
View all questions in TrustZone for Armv8-M forum