You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. Commit — the git hooks will automatically check your commit message and run ruff on staged files
93
93
6. Push your branch and open a Pull Request
94
94
95
+
If git hooks fail because `node_modules/` is missing (for example on a fresh clone or after `make deepclean`), run `make setup` or `npm install` before committing.
The drivers are "frozen" into the MicroPython firmware for the STeaMi board. The Makefile automates cloning, building, and flashing:
130
+
131
+
```bash
132
+
make firmware # Clone micropython-steami (if needed), link local drivers, build
133
+
make firmware-update # Refresh the MicroPython clone and board-specific submodules
134
+
make deploy # Flash firmware via OpenOCD
135
+
make run SCRIPT=lib/steami_config/examples/show_config.py # Run with live output
136
+
make deploy-script SCRIPT=lib/.../calibrate_magnetometer.py # Deploy as main.py for autonomous use
137
+
make run-main # Re-execute the deployed main.py
138
+
make firmware-clean # Clean firmware build artifacts
139
+
```
140
+
141
+
The firmware source is cloned into `.build/micropython-steami/` (gitignored). A symbolic link replaces the submodule `lib/micropython-steami-lib` with your local working directory, so the firmware always includes your latest changes — even uncommitted ones.
142
+
143
+
Use `make firmware` for normal rebuilds from the existing local clone. Use `make firmware-update` only when you want to refresh the `micropython-steami` checkout itself or resync the board-specific submodules before rebuilding.
144
+
145
+
**Requirements**: `arm-none-eabi-gcc` toolchain, OpenOCD for flashing, and `mpremote` for running scripts on the board.
0 commit comments