Reflash firmware within a debug session
flash_load_in_sessionReflash the loaded ELF in an active STM32 debug session without USB conflict, using GDB's load command. Optionally run to main or reset after loading.
Instructions
Reflashes the currently loaded ELF via gdb's load (MI: -target-download) inside an already-open debug session. No USB conflict — ST-LINK_gdbserver retains ownership of the probe throughout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runToMain | No | Set a temporary breakpoint at main and run to it after loading (default: false) | |
| sessionId | Yes | ||
| resetAfter | No | Issue a target reset after loading (default: true) |