pyocd_debug_fault_analyze
Analyze crash faults by reading SCB fault registers, decoding fault bits, and extracting the fault PC and caller LR from the exception stack frame. Also decodes EXC_RETURN for context.
Instructions
Analyze a HardFault/BusFault/MemManage/UsageFault/SecureFault crash. Reads all SCB fault registers, decodes fault bits, reads the exception stack frame to find the fault PC (crash address) and caller LR. Also decodes EXC_RETURN for FPU/MSP/PSP context. Call this when target is halted in a fault handler.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |