verify_flash
Verifies that STM32 target flash matches a specified ELF by comparing read-only sections with GDB, optionally including writable RAM sections right after loading.
Instructions
Verifies that target flash matches an ELF (GDB compare-sections). Compares read-only sections, which is what lives in flash; writable sections hold the ELF's initial RAM values and always differ once the firmware has run, so including them would fail every healthy target. Pass include_writable=true only right after a load, before the target has executed.
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": {
"file_path": "<file_path>"
},
"name": "verify_flash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Optional debug-session name. Omit for the default target. | |
| file_path | Yes | Path to the ELF to verify against. | |
| include_writable | No | Also compare writable (RAM) sections. Only meaningful immediately after a load. |