This project uses CMake, as well as a working ARM toolchain.
Ensure you have the following installed before proceeding:
- Git
- CMake with version 3.27 or higher
- A working ARM GCC compiler
- The ARM newlib library for the installed ARM GCC compiler
On Arch Linux, this corresponds to the git, cmake, arm-none-eabi-gcc, and arm-none-eabi-newlib packages.
On other platforms, see the official Pico SDK documentation for instructions on preparing a build environment.
Before building the project, it is required to initialise the submodules.
To do this, simply run the following git command in the repository root.
git submodule update --init --recursiveAfter having successfully initialised the submodules, the project is ready for building.
To generate the files needed to start a build, run the following command.
cmake -B buildThese generated files can then be used to build the project.
cmake --build build -j16Finally, flash the PI PICO by mounting it in BOOTSEL mode and copying the file located at build/main.uf2.