Skip to main content
Associate II
March 29, 2024
Solved

Facing Hard fault when implementing RTOS on NUCLEO-H563 board

  • March 29, 2024
  • 1 reply
  • 1047 views

Hi 

I am trying to RTOS on my device STM32-H563ZI

I get a hard fault when I hit the function osKernelStart(); in the main loop

When I started debugging ,my code seems to get  hardfault after vStartFirstTask in function xPortStartScheduler()

I am trying to toggle LED in the task  from this example https://www.youtube.com/watch?v=OPrcpbKNSjU

Thank You.

This topic has been closed for replies.
Best answer by mƎALLEm

Hello,

I created a project based on NUCLEO-H563 board on which I enabled FreeRTOS and created two tasks each one is toggling a LED. I didn't find any issue. See attachment.

I noticed that you've already opened another thread for the same case with TrustZone enabled.

As you didn't mention in this thread, which TrustZone configuration you set, let's keep this one for TrustZone disabled.

1 reply

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
March 29, 2024

Hello,

I created a project based on NUCLEO-H563 board on which I enabled FreeRTOS and created two tasks each one is toggling a LED. I didn't find any issue. See attachment.

I noticed that you've already opened another thread for the same case with TrustZone enabled.

As you didn't mention in this thread, which TrustZone configuration you set, let's keep this one for TrustZone disabled.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.