Professional C development template for RP2350 using Pico SDK.
MacBook (VSCode)
→ SSH
Raspberry Pi 5 (build machine)
→ USB
RP2350 target
sudo apt install git cmake ninja-build gcc-arm-none-eabi \
libnewlib-arm-none-eabi picotoolClone Pico SDK:
git clone https://github.com/raspberrypi/pico-sdk.git ~/pico-sdk
cd ~/pico-sdk
git submodule update --initAdd to ~/.bashrc:
export PICO_SDK_PATH=$HOME/pico-sdkUse Remote-SSH extension and open this folder on the Raspberry Pi. Tasks are configured in .vscode/tasks.json:
- Compile Project (Ctrl+Shift+B): Builds using Ninja
- Run Project: Flash via picotool (standard deployment)
- Flash: Program via OpenOCD with CMSIS-DAP debugger (for debugging)
- Serial Monitor: Opens serial console (picocom) with auto-detection of
/dev/ttyACM0
cmake -S . -B build -G Ninja
ninja -C buildopenocd -s ~/.pico-sdk/openocd/0.12.0+dev/scripts \
-f interface/cmsis-dap.cfg \
-f target/rp2350.cfg \
-c "adapter speed 5000; program build/src/rp2350_pico_template.uf2 verify reset exit"picocom -b 115200 /dev/ttyACM0