live_memory_write
Write a variable or memory address through a running live memory session so monitoring continues without restarting; supports integers and floats.
Instructions
Edit a variable through a RUNNING live memory session (live expression edit).
Writes through the session's OpenOCD connection — the monitoring session keeps running and the next polls show the new value. No need to stop and restart the session. Integers and floats are accepted ("1200", "0x4B0", "0.85" — floats require a 32-bit symbol).
Args: session_id: Session ID from live_memory_start. value: Value to write — hex "0xFF", decimal "255", or float "0.85". symbol: Variable name or C path ("g_app.dosing.cfg.pid_kp") resolved from the session's ELF. Mutually exclusive with address. Width auto-detected from symbol size. address: Hex address like "0x20000304". Mutually exclusive with symbol. width: Access width — 8, 16, or 32 bits (address form only).
Returns: Write confirmation with the target variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| width | No | ||
| symbol | No | ||
| address | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |