How to printout callstack , like using backtrace function in glibc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to printout callstack , like using backtrace function in glibc

Jump to solution
766 Views
Seongyon_Jeong
Contributor III

Hello, everyone.

IMX RT 1020 EVK board,  OS-FreeRTOS,   SDK-2.x_EVK-MIMXRT1020  2.13.0

MCUXpresso IDE 11.7.1

 

I am looking for the  easiest method  that prints  callstack.

first, I tried to  include [ execinfo.h ] ,  but  It  does not  works

and I found  it does not exist  in plugin  path<< ==   ~~\tool\arm-none-eabi\include\ xxxx.h

 

I need to  check  callstack - method to print-out  in debugConsole   in RunTime,  not IDE-debugMode 

So, Is there any guide  ?

What is the best & simple way to  print  callstack  on terminal,   like bactrace function in execinfo.h   ?

Tags (2)
0 Kudos
Reply
1 Solution
719 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Seongyon_Jeong,

The only thing I found was this blog post by our colleague Erich, please take a look into that: https://mcuoneclipse.com/2015/10/03/freertos-arm-thread-debugging-with-eclipse-and-gdb/

Other than this, I'm afraid we do not have more resources or documentation about this topic.

BR,
Edwin.

View solution in original post

0 Kudos
Reply
2 Replies
720 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Seongyon_Jeong,

The only thing I found was this blog post by our colleague Erich, please take a look into that: https://mcuoneclipse.com/2015/10/03/freertos-arm-thread-debugging-with-eclipse-and-gdb/

Other than this, I'm afraid we do not have more resources or documentation about this topic.

BR,
Edwin.

0 Kudos
Reply
713 Views
Seongyon_Jeong
Contributor III
Thanks your advice, Now I am facing critical issue(my another problem) , so, I can not check this right now, after resolve my issue, I will check your linked page, In spite of your mention, I am appreciated your answer, Thanks
0 Kudos
Reply