cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-H563ZI HardFault at vRestoreContextOfFirstTask

Jan27
Associate II

I created default project with FreeRTOS in STM32CubeMx for the board Nucleo-H563ZI. Nothing more added.

Hard Fault is invoked at vRestoreContexOfFirstTask.

I was looking for the solution in Copilot and Perplexity but without success. Only I can say it's probably no problem with stack overflow.

Jan

2 REPLIES 2
Jan27
Associate II

When I did the same for the board NUCLEO-G474RE (project for STM32Cube) FreeRTOS seems working.

No HardFault.

Jan

Jan27
Associate II

I created this problem myself. Some time ago I had to set TZEN bits on B4 Trust zone enabled.

When I reseted it C4 Trust zone disabled it's ok now.

Jan