esp_backtrace_print_from_frame() function
Print the backtrace from specified frame.
Arguments
depth
The maximum number of stack frames to print (should be > 0)
frame
Starting frame to print from
panic
Indicator if backtrace print is during a system panic
Return value
- ESP_OK Backtrace successfully printed to completion or to depth limit - ESP_FAIL Backtrace is corrupted
Notes
On the ESP32, users must call esp_backtrace_get_start() first to flush the stack. If a esp_backtrace_frame_t* frame is obtained though a call to esp_backtrace_get_start() from some example function func_a(), then frame is only valid within the frame/scope of func_a(). Users should not attempt to pass/use frame other frames within the same stack of different stacks.
esp_backtrace_print_from_frame() is called by 3 functions and calls 6 functions:
![]()
esp_backtrace_print_from_frame()
esp_backtrace_print_from_frame() reads 5 variables:
![]()
esp_backtrace_print_from_frame()