stm32_flash
Flash compiled .elf firmware to STM32 microcontrollers over SWD with STM32 Programmer CLI. Confirm the write to target hardware and reset the device to start running the new firmware.
Instructions
STM32_Programmer_CLI -c port=SWD -w -rst. Requires confirm: true. Default is refuse.
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": {
"elfPath": "<elfPath>"
},
"name": "stm32_flash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Programmer interface port (default: SWD) | SWD |
| reset | No | Whether to reset target device after flashing | |
| confirm | No | Must pass true to confirm flashing to target hardware | |
| elfPath | Yes | Path to .elf binary or project folder containing Debug/*.elf |