| name | build-flash-debug |
| description | Generate deterministic build, flash, and debug instructions, with toolchain preference for PlatformIO and fallback to vendor SDKs. |
| allowed-tools | Read, Glob, Grep, Bash |
Build, Flash, Debug
Deterministic build/flash/debug procedure with PlatformIO preference.
Purpose
Ensure reproducible builds and safe flashing.
Workflow
- Detect PlatformIO viability.
- Emit PlatformIO build and upload commands.
- If needed, emit vendor SDK build steps.
- Provide debugger configuration (OpenOCD/ST-Link).
- Provide verification checklist.
Scripts
| Script | Purpose | Command |
|---|
scripts/build_flash_debug.py | Build/flash/debug command generator | python scripts/build_flash_debug.py <target> |