backtrace
Reconstruct the call stack of a halted Cortex-M MCU by scanning stack memory and resolving addresses to ELF symbols, aiding fault diagnosis.
Instructions
Heuristic call stack reconstruction for Cortex-M targets.
Frame 0 is the current PC. Frame 1 is LR (return address). Further frames are found by scanning the stack for addresses that resolve to known function symbols in the loaded ELF. Accuracy depends on compiler optimizations; best with -O0 or -O1. Requires probe connected and target halted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_frames | No | ||
| stack_scan_words | No |