read_registers
Reads STM32 CPU register groups: core registers, decoded CFSR/HFSR fault status for HardFault triage, or the DWT cycle counter for profiling.
Instructions
Read CPU register groups. what=core([include_raw]) | fault | cycle([enable]). fault decodes CFSR/HFSR; cycle reads the DWT cycle counter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| what | Yes | Which operation to perform. | |
| enable | No | If true, enable and zero the counter before reading. | |
| session | No | Optional debug-session name. Omit for the default target. | |
| include_raw | No | Include the raw GDB transcript (default false). |