Hardfault while using TrustZone STM32H573i-DK
Hi everyone,
I'm currently experimenting with a STM32H573i-DK and TrustZone and facing some issues.
First I tried enabling TrustZone in the Project Creation Process. When i try to run this empty project using the steps:
- Select and build the xxxxx_NS project, this will automatically trigger build of xxxxx_S project
- Select the xxxxx_S project and select “Debug configuration”
- Double click on “STM32 Cortex-M C/C++ Application”
- Select “Startup” > “Add” >
- Select the xxxxx_NS project
- Build configuration : Select Release/Debug
- Click Debug to debug the example
the execution lands in the HardFault_Handler after the call to NonSecure_Init().
Almost the same happens if I try to run the GTZC_MPCWM_IllegalAccess_TrustZone example.
After the call to SECURE_SAU_MPCWM_SetInitConfig(), the execution lands in the HardFault_Handler().
I'm following the steps at the bottom of the Readme file.
Am I missing something or has anyone got an explanation for this behaviour?
I would appreciate any help or resources on this topic.
Best
funkii
