Skip to main content
Associate II
November 27, 2025
Question

Nucleo-H563ZI HardFault at vRestoreContextOfFirstTask

  • November 27, 2025
  • 2 replies
  • 143 views

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

Jan27Author
Associate II
November 27, 2025

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

No HardFault.

Jan

Jan27Author
Associate II
November 29, 2025

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