1.2 KiB
1.2 KiB
Build Instructions
This project uses CMake with the Raspberry Pi Pico SDK and an ARM cross-toolchain.
Prerequisites (Ubuntu/Debian)
Install required packages:
sudo apt-get update
sudo apt-get install -y \
cmake \
ninja-build \
gcc-arm-none-eabi \
binutils-arm-none-eabi
Configure
From the repository root:
cmake -S . -B build -G Ninja -DPICO_SDK_FETCH_FROM_GIT=ON
Notes:
PICO_SDK_FETCH_FROM_GIT=ONautomatically downloads the Pico SDK intobuild/_deps.- If you already have a local Pico SDK, set
PICO_SDK_PATHinstead.
Build the Monoscope Example
cmake --build build --target vga_monoscope -j
Output Artifacts
After a successful build, files are generated here:
build/examples/vga_monoscope/vga_monoscope.uf2build/examples/vga_monoscope/vga_monoscope.hexbuild/examples/vga_monoscope/vga_monoscope.binbuild/examples/vga_monoscope/build/vga_monoscope.elf
Rebuild
To rebuild after source changes:
cmake --build build --target vga_monoscope
Clean Build
To start from a clean state:
rm -rf build
cmake -S . -B build -G Ninja -DPICO_SDK_FETCH_FROM_GIT=ON
cmake --build build --target vga_monoscope -j