dump stack trace

tpham3783 wrote on Friday, May 25, 2012:

Hi,

I would like to know if there is a way to dump the function stack trace to determine the cause leading to a system crash? 

thanks

edwards3 wrote on Friday, May 25, 2012:

There cannot be a generic method in the scheduler for stack traces because each architecture is different in that respect, and sometimes there are even differences between compilers on the same architecture. You can normally get a stack trace from a debugger though. Can you put a break point where the crash happens to stop the debugger on that line, then see the function call stack?

FreeRTOS+Trace (http://www.percepio.se) would help you see what happened before the crash too.