A simple C/C++ template for the Raspberry Pi pico using cmake.
CLion works great as an IDE.
Was made with help from the Getting Started guide
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc cmake ninjasudo apt update
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential ninja-buildWindows Subsystem for Linux (WSL) can be used to run Ubuntu.
Updates the pico-sdk sub-module, this may take a few minutes as its quite large.
git submodule update --init --recursiveCreates a new build directory and uses ninja to build the .uf2 file.
mkdir build
cd build
cmake -G Ninja ..
ninjaCopy the .uf2 file from the build directory onto the pico to run
ls /dev/tty.*
screen /dev/tty.usbmodem0000000000001