This repo has been merged into the main firmware repo.
Main board firmware running on an RP2040 microcontroller.
Install dependencies:
sudo apt install cmake python3 build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib openocd tioClone the Pico SDK and point PICO_SDK_PATH to it:
git clone https://github.com/raspberrypi/pico-sdk /path/to/pico-sdk
export PICO_SDK_PATH=/path/to/pico-sdkcmake --preset debug # or release
cmake --build --preset debugBuild output is placed in out/. The main artifact is out/micro-firmware.elf.
Flashing is done via SWD using OpenOCD. This also resets the chip immediately after flashing:
openocd -f interface/raspberrypi-swd.cfg -f target/rp2040.cfg \
-c 'program out/micro-firmware.elf verify reset exit'tio -b 115200 /dev/serial0tio automatically reconnects when the chip resets or is reflashed.
If using Zed, the following tasks are available via the command palette (task: spawn):
| Task | Description |
|---|---|
Flash |
Flash via SWD and reset |
Reset |
Reset the chip via SWD |
Monitor |
Open serial monitor in a dedicated terminal tab |