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.
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. |