name: pi-openclaw-arduino-flash description: Flash firmware to Arduino boards in the pi-openclaw-mcp-stack workflow after successful build/deployment. Use when users need serial port detection, board/FQBN checks, upload commands for Nano 33 BLE, post-flash verification, or EI deployment handoff completion.
Pi OpenClaw Arduino Flash
- Confirm firmware source and build state.
- Use
references/flash-playbook.mdto verify sketch/artifact and compile status first. - Do not flash before a successful compile.
- Accept handoff inputs from
$pi-openclaw-ei-arduino-deploy(projectRoot,bundleArtifact,fqbn,port).
- Detect board connection and serial port on Pi.
- Use
references/serial-port-checks.mdto identify/dev/tty*and permission issues.
- Select upload path.
- Preferred:
scripts/flash-nano33ble.sh(compile then upload, hostarduino-clifirst). - Equivalent fallback: host-side
arduino-cli compile+arduino-cli uploadon Pi. - Optional: container-side upload only when the serial device is mapped into container runtime.
- Run flash command with explicit board and port.
- Require explicit
fqbnandport. - Default board in this stack is Nano 33 BLE (
arduino:mbed_nano:nano33ble).
- Verify after upload.
- Confirm upload success output.
- Re-open serial monitor or run target-level smoke check if applicable.
- Report exact command and result.
- Include board, port, sketch path, and upload outcome.
References
references/flash-playbook.mdreferences/serial-port-checks.md