flash
Write firmware to an MCU via ST-Link, verify the write, then start the application. Replaces existing code; build first if sources changed.
Instructions
Write the built firmware to the board's flash over ST-Link, verify the write, then start the application. DESTRUCTIVE: whatever runs on the MCU is replaced.
Flashes the artifact from the last build — call build first if
sources changed since. Tries up to 3 times on transient probe
errors. Any failure — including a missing ST-Link or CubeProgrammer —
surfaces as failed + FLASH_FAILED, exit_code 2; data.log carries the
programmer output. Run doctor to tell an environment problem (no
probe / no tools) apart from a write failure.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | No | Path to the board profile YAML (e.g. boards/apollo-h743.yaml). Omit to use the server's --board argument, else the default search path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| data | No | ||
| policy | No | ||
| status | Yes | ||
| summary | Yes | ||
| evidence | No | ||
| warnings | No | ||
| exit_code | No | ||
| schema_version | No | 1.0 |