This project uses the Harp Core RP2040 library as a submodule. Install it with:
git submodule update --init
This project uses the Pico SDK. The SDK needs to be downloaded and installed to a known folder on your PC. Note that the PICO SDK also contains submodules (including TinyUSB), so you must ensure that they are also fetched with:
git clone git clone [email protected]:raspberrypi/pico-sdk.git
git submodule update --init --recursive
Recommended, but optional: define the PICO_SDK_PATH
environment variable to point to the location where the pico-sdk was downloaded. i.e:
PICO_SDK_PATH=/home/username/projects/pico-sdk
On Linux, it may be preferrable to put this in your .bashrc
file.
From this directory, create a directory called build, enter it, and invoke cmake with:
mkdir build
cd build
cmake ..
If you did not define the PICO_SDK_PATH
as an environment variable, you must pass it in here like so:
mkdir build
cd build
cmake -DPICO_SDK_PATH=/path/to/pico-sdk ..
After this point, you can invoke the auto-generated Makefile with make
Press-and-hold the Pico's BOOTSEL button and power it up (i.e: plug it into usb). At this point you do one of the following:
- drag-and-drop the created *.uf2 file into the mass storage device that appears on your pc.
- flash with picotool