debug_dump_symbol_ihex
Reads an allowed symbol from target memory and writes it as Intel HEX to a file, returning address and size.
Instructions
Read an allowed symbol from target memory and write it as Intel HEX to output_path; returns address, size_bytes and output. Value inline: debug_symbol_value. OpenOCD needs debug_start_session (else session_not_active); pyOCD and STM32CubeProgrammer, the ELF last flashed via flash_firmware (else symbol_source_not_available). Over debug.max_dump_size_bytes: permission_denied.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"output_path": "<output_path>"
},
"name": "debug_dump_symbol_ihex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | C identifier, optionally ::-qualified, e.g. boot_counter. Allowed if in debug.allowed_symbols or debug.allow_all_symbols is true (default false), else permission_denied. Not in ELF: symbol_not_found. | |
| output_path | Yes | Workspace path ending .hex or .ihex, no '..' segment, under artifacts.allowed_roots if validation.require_allowed_root (default true), else output_validation_failed. Folders created, a file replaced. |