flash_firmware
Program firmware onto target STM32 chips via Keil UV4 or pyOCD, with automatic backend selection and explicit confirmation required for safe operation.
Instructions
Flash firmware to the target chip.
Preferred path: UV4 -f (Keil official flash download, uses the project's configured Flash algorithm). Fallback: pyocd load . Requires confirm=True (persistent destructive operation).
Args: project: .uvprojx path (for UV4 -f) — required unless image is given target: target name for UV4 -f image: firmware image (axf/hex/bin) for the pyocd path backend: "uv4" | "pyocd" | "auto" probe_id: pyOCD probe unique id (optional) confirm: MUST be True to actually flash
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ||
| target | No | ||
| backend | No | auto | |
| confirm | No | ||
| project | Yes | ||
| probe_id | No | ||
| timeout_seconds | No |