stm32_flash_firmware
Flash compiled firmware (.elf, .hex, or .bin) to an STM32 microcontroller via SWD/JTAG, with optional verify, reset, and immediate execution.
Instructions
Flashes firmware (.elf, .hex, or .bin) onto the target STM32 microcontroller.
Args: file_path: Path to compiled binary (.elf, .hex, .bin). address: Flash start address (required for raw .bin files, e.g. '0x08000000'). verify: Verify flash write after programming. reset: Reset target MCU after programming. port: Debug interface ('SWD', 'JTAG', 'URT', 'USB1'). freq_khz: Debug probe clock frequency in kHz. start_run: Start firmware execution immediately.
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": "stm32_flash_firmware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | SWD | |
| reset | No | ||
| verify | No | ||
| address | No | ||
| freq_khz | No | ||
| file_path | Yes | ||
| start_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |