stm32_build_and_flash
Build a CubeIDE STM32 project and flash the resulting .elf to the connected board via ST-Link in one step, with optional clean, reset, and verify.
Instructions
Build firmware and flash it to the board in one step.
Compiles the project, then flashes the resulting .elf to the connected STM32 via ST-Link. This is the most common workflow - use this instead of calling stm32_build and stm32_flash separately.
Args: project_path: Absolute path to the CubeIDE project root. configuration: Build configuration - "Debug" or "Release". clean: If true, clean before building. reset: If true, reset the board after flashing. verify: If true, verify flash contents after writing. probe: Board nickname, probe nickname, or ST-Link SN to target a specific board.
Returns: Combined build and flash results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | ||
| probe | No | ||
| reset | No | ||
| verify | No | ||
| project_path | Yes | ||
| configuration | No | Debug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |