Stack Backtrace for ARM core using GCC compiler (when there is a MSP to PSP switch)
问题 Core - ARM Cortex-M4 Compiler - GCC 5.3.0 ARM EABI OS - Free RTOS I am doing stack backtrace using gcc library function _Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn,void*); In our project, MSP stack is used for exception handling. In other cases, PSP stack is used. When I call _Unwind_Backtrace() inside the exception handler, I am able to back trace properly up to the first function which is called inside exception. Until this the stack is MSP. But before exception, we were not able