Read Cortex-M fault registers
read_fault_registersCapture a full dump of Cortex-M fault registers and decode CFSR/HFSR bits into flag names, along with PC/SP/LR, to pinpoint the cause of an STM32 crash. Provides raw fault evidence for debugging.
Instructions
One-call dump of Cortex-M SCB fault registers (CFSR/HFSR/MMFAR/BFAR/SHCSR/CPUID/ICSR) plus PC/SP/LR, with CFSR/HFSR bits decoded to flag names. Raw evidence only — no root-cause interpretation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>"
},
"name": "read_fault_registers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes |