Skip to content

Repository files navigation

RP2350 Pico SDK Template

Professional C development template for RP2350 using Pico SDK.

Architecture

MacBook (VSCode)
→ SSH
Raspberry Pi 5 (build machine)
→ USB
RP2350 target

Requirements (on Raspberry Pi 5)

sudo apt install git cmake ninja-build gcc-arm-none-eabi \
                 libnewlib-arm-none-eabi picotool

Clone Pico SDK:

git clone https://github.com/raspberrypi/pico-sdk.git ~/pico-sdk
cd ~/pico-sdk
git submodule update --init

Add to ~/.bashrc:

export PICO_SDK_PATH=$HOME/pico-sdk

Build, Flash & Monitor (VSCode)

Use 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

Manual Build & Flash

Build

cmake -S . -B build -G Ninja
ninja -C build

Flash (OpenOCD)

openocd -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"

Serial Monitor

picocom -b 115200 /dev/ttyACM0

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages