stm32_flash_firmware
Flash firmware files (.bin, .hex, .elf, .srec) to STM32 microcontrollers via ST-Link. Supports verification, mass erase, reset, and run.
Instructions
Flash/program firmware file (.bin, .hex, .elf, .srec) to target STM32 MCU with optional verification, mass erase, reset, and run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sn | No | ST-LINK probe Serial Number | |
| port | No | Connection port (SWD, JTAG, COMx, etc.) | SWD |
| verify | No | Verify flashed data against source file | |
| address | No | Start address in hex format (e.g. 0x08000000). Required for .bin files. | 0x08000000 |
| file_path | Yes | Absolute path to firmware binary/elf/hex file | |
| erase_first | No | Erase entire flash before writing | |
| reset_and_run | No | Reset MCU and start execution after flashing |