stm32_write_memory
Writes values to STM32 memory over OpenOCD using a raw hex address or an ELF-resolved variable/symbol path, with configurable width and probe selection.
Instructions
Write memory by address or variable name.
Writes a value to memory on 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. value: Value to write — hex "0xFF" or decimal "255". 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: Confirmation of the write operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probe | No | ||
| value | No | ||
| width | No | ||
| symbol | No | ||
| address | No | ||
| elf_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |