cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling freeRTOS for STM32U5 (B-U585I-IOT02A)

amolchor25
Associate III

Hi 

I am creating project using STM32CUBEMX for board (B-U585I-IOT02A) Non-Trust-Zone.

amolchor25_0-1690456209386.pngamolchor25_1-1690456332616.png

the above configuration done while creating project.

I am getting stuck at HardFault_Handler.

am I missing some configuration, please let me know !!

@olivier

6 REPLIES 6
TDK
Guru

HardFault_Handler getting called indicates there is a bug somewhere. It's not useful guessing at what the problem is. Instead, diagnose the issue and find out where and why the fault is occurring. Step through the code, find out what statement causes it. Look at SCB registers. Lots of things you can do here to diagnose.

If you feel a post has answered your question, please click "Accept as Solution".

Thanks for reply

I am debugging the code through cubeide and it redirects to

osKernelStart -> vTaskStartScheduler -> xPortStartScheduler -> vStartFirstTask



TDK
Guru

Probably insufficient heap or thread stack size.

If you feel a post has answered your question, please click "Accept as Solution".

Could you please describe how to modify the stack and heap?
currently I am using heap_4.c when created the project.

amolchor25
Associate III

Hi team,

let me know any other configuration m I missing while enabling freeRTOS for stm32u5 (B-U585I-IOT02A) board?

Hello,

Did you find a solution for this issue ? I have the same one ...