stm32_read_memory
Read STM32 memory by raw hex address or ELF-resolved variable name via OpenOCD to inspect variables and debug firmware.
Instructions
Read memory by address or variable name (from ELF symbols).
Reads memory from the connected STM32 via OpenOCD. Can specify a raw hex address or a symbol resolved from the ELF — a plain variable name or a C path like "g_app.dosing.cfg.pid_kp".
Args: address: Hex address like "0x20000304". Mutually exclusive with symbol. symbol: Variable name ("blink") or C path ("app.state.rate"). Requires elf_path. elf_path: Path to .elf file for symbol resolution. count: Number of units to read (default 1). width: Access width — 8, 16, or 32 bits. Auto-detected from symbol size. probe: Board nickname, probe nickname, or ST-Link SN. Empty auto-selects the only connected board.
Returns: Memory contents formatted as hex values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| probe | No | ||
| width | No | ||
| symbol | No | ||
| address | No | ||
| elf_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |