Skip to main content
Associate II
July 27, 2023
Question

Enabling freeRTOS for STM32U5 (B-U585I-IOT02A)

  • July 27, 2023
  • 6 replies
  • 3501 views

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

    This topic has been closed for replies.

    6 replies

    TDK
    July 27, 2023

    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""."
    Associate II
    July 27, 2023

    Thanks for reply

    I am debugging the code through cubeide and it redirects to

    osKernelStart -> vTaskStartScheduler -> xPortStartScheduler -> vStartFirstTask



    TDK
    July 27, 2023

    Probably insufficient heap or thread stack size.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Associate II
    July 27, 2023

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

    Associate II
    July 31, 2023

    Hi team,

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

    Explorer II
    April 15, 2024

    Hello,

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