Device-side runtime and tooling for debugging Pimoroni Badgeware badges (Tufty 2350, Badger 2350, Blinky 2350) from the Badgeware IDE.
| Path | Contents |
|---|---|
device/cdcaux/ |
cdcaux C module: the second USB CDC interface, file and app roles, guarded block device |
device/python/ |
Shared Python runtime frozen into each board: ide facade, file and ROM helpers, IDE sessions, debugger, _boot.py |
tools/bundle.py |
Builds a firmware debug bundle from a board's firmware repo |
tools/fsclient.py |
Command line client and hardware test suite for the aux channel's fs and app roles |
docs/ |
Protocol and design rationale, device runtime and board hooks, bundle format |
tests/ |
Off-hardware tests |
ci/ |
Lint configuration and CI helpers |
A VS Code extension may live here later.
Boards consume this repository by path, like picovector:
cmake ... -DBADGEWARE_DEBUG_DIR=/path/to/badgeware-debugSee board integration. Board CI clones a pinned version; set BADGEWARE_DEBUG_DIR before sourcing ci/micropython.sh to build against a local checkout.
The MicroPython side (the aux CDC interface, settrace local naming and mpy-cross --locals) is in the pimoroni/micropython fork, branch bw-1.29.0-ide.
tools/bundle.py tufty ../tufty2350 --output build/tufty-bundle --mpy-cross ../micropython/mpy-cross/build/mpy-cross
pip install -r tools/requirements.txt
python3 tools/fsclient.py info
python3 tools/fsclient.py testfsclient.py test writes to /.fstest on a connected badge and removes it afterwards.
source ci/python.sh
qa_device_check && qa_tools_check && qa_tests_check
qa_tests_run