flash_firmware
Flash firmware onto a connected microcontroller board. Use dry_run mode to preview command before writing.
Instructions
Flash a firmware image onto the connected board.
DESTRUCTIVE: this overwrites the flash of whatever board is connected. For
safety it defaults to dry_run=True, which only returns the exact command
it would run without executing it. Set dry_run=False to actually flash.
Args: firmware_path: Path to the firmware (.bin for st-flash; .elf for probe-rs/openocd). tool: "auto" (pick the first installed) or "st-flash" / "probe-rs" / "openocd". address: Flash address for st-flash (default STM32 0x08000000). chip: Chip name for probe-rs, e.g. "STM32F407VG". openocd_target: OpenOCD target cfg, e.g. "target/stm32f4x.cfg". dry_run: If True (default), return the command instead of running it. timeout_seconds: Max time to wait when actually flashing (capped at 600s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chip | No | ||
| tool | No | auto | |
| address | No | 0x08000000 | |
| dry_run | No | ||
| firmware_path | Yes | ||
| openocd_target | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||