debug_registers
Reads core or full register values from a halted STM32 session—PC, LR, SP, xPSR, r0–r12, MSP/PSP—and annotates PC/LR with function and source line when an ELF is loaded.
Instructions
Read core registers while the core is halted.
Args: session_id: Session ID from debug_session_start. regs: "core" (default) = PC, LR, SP, xPSR; "all" = full register dump (r0-r12, SP, LR, PC, xPSR, MSP/PSP, CONTROL...); or a single register name like "r5" or "pc".
Returns: Register values in hex. PC and LR are annotated with function and source line when an ELF is loaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regs | No | core | |
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |