Flash firmware (standalone)
flash_standaloneFlash STM32 firmware in a single command using STM32_Programmer_CLI without a debug session. Resolves DEVICE_BUSY errors by requiring debug sessions to be closed first.
Instructions
One-shot flash via STM32_Programmer_CLI — no debug session required. Fails with DEVICE_BUSY if a debug session is already open on the same probe (it holds exclusive USB access); disconnect first, or use flash_load_in_session instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | Start execution after programming (default: true) | |
| file | Yes | Path to the .elf/.bin/.hex file to program | |
| reset | No | default: hard | |
| serial | No | ||
| verify | No | Verify after download (default: true) | |
| address | No | Flash address for raw .bin files, e.g. 0x08000000 (ignored for .elf/.hex) | |
| frequencyKhz | No |