2021-08-23 03:16 AM
I followed the GPIO_IOToggle_TrustZone Example for STM32U5, which is documented in UM2883 (STM32CubeU5GettingStarted.pdf; section 5.1.1).
The development board used is a NUCLEO-U575ZI-Q.
Details:
When I set a breakpoint in HAL_SYSTICK_Callback (where the LED is toggelt) this breakpoint is never hit. Instead, when initialization is done, the HardFault_Handler() in %USERPROFILE%\STM32Cube\Repository\STM32Cube_FW_U5_V1.0.0\Projects\NUCLEO-U575ZI-Q\Examples\GPIO\GPIO_IOToggle_TrustZone\Secure\Src is entered.
All steps were checked by one of my colleagues, so my last hope is this expert forum here.
2021-08-24 03:52 AM
Hello @SReic.1 ,
Welcome to STM32 Community!
I recommend you to have a look to readme file under STM32Cube directory:
STM32Cube\Repository\ STM32Cube_FW_U5_V1.0.0/Projects/B-U585I-IOT02A/Examples/GPIO/GPIO_IOToggle_TrustZone/readme.html
Imen
2021-08-25 12:01 AM
Hi Imen,
Thank you. In the meantime I have found my mistake. It was that I forgot to set the values for SECWM[1-2]_PSTRT and SECWM[1-2]_PEND with STM32CubeProgrammer.
I sticked to STM32Cube_FW_U5_V1.0.0\Projects\NUCLEO-U575ZI-Q\Examples\GPIO\GPIO_IOToggle_TrustZone\Readme.html.
Stephan
2021-08-25 02:28 AM
Hello @SReic.1 ,
Really glad to know you overcame your problem
Thank you.
Imen