cancel
Showing results for 
Search instead for 
Did you mean: 

Hi all, How to get function call backtrace from within freeRTOS task after hardfault handler?

philsax
Associate II

I am working on stm32f769 project, running freeRTOS task, with stm32cubeIDE(1.7.0) debugger and freeRTOS NXP viewer.

I would like do get backtrace and call stack of a fault happened in a freeRTOS task, without costly tools. I tried the MCU registers dump suggested on freeRTOS but didn't help me so much. Any further suggestion?

2 REPLIES 2

Hello @philsax​ ,

I advice you to activate the assertions in FreeRTOS if they haven't already been activated.

Can you provide the registers dump that you talked about earlier?

BeST Regards,

Walid

alister
Lead

>I would like do get backtrace and call stack of a fault happened in a freeRTOS task, without costly tools.

The address that faulted is usually enough and costs nothing.

Refer the exception stack frame in your ARM programmers guide.

Refer the CFSR for BFSR and the BFAR in the system control block.