Description
Add Makefile targets to automate the firmware build, deploy, and script execution workflow.
Architecture
The firmware source (micropython-steami) is cloned into .build/ (gitignored). A symbolic link replaces the submodule lib/micropython-steami-lib with the local working directory, so the firmware always includes the latest driver changes — even uncommitted ones.
Targets
| Target |
Description |
make firmware |
Clone (if absent), pull latest, symlink local drivers, build |
make deploy |
Flash firmware via OpenOCD |
make run SCRIPT=... |
Run a script with live output via mpremote run |
make deploy-script SCRIPT=... |
Copy script as main.py for autonomous execution |
make run-main |
Re-execute the deployed main.py |
make firmware-clean |
Clean build artifacts |
Requirements
arm-none-eabi-gcc toolchain
- OpenOCD for flashing
mpremote for running scripts on the board
Description
Add Makefile targets to automate the firmware build, deploy, and script execution workflow.
Architecture
The firmware source (
micropython-steami) is cloned into.build/(gitignored). A symbolic link replaces the submodulelib/micropython-steami-libwith the local working directory, so the firmware always includes the latest driver changes — even uncommitted ones.Targets
make firmwaremake deploymake run SCRIPT=...mpremote runmake deploy-script SCRIPT=...main.pyfor autonomous executionmake run-mainmain.pymake firmware-cleanRequirements
arm-none-eabi-gcctoolchainmpremotefor running scripts on the board