Agent skill · software engineering · sammcj

raspberry-pi-pico2

Use when developing with Raspberry Pi Pico 2 or the Pi Debug Probe.

Why this skill is useful

Provides specific commands and configurations for Raspberry Pi Pico 2 development that the AI wouldn't reliably generate on its own.

What it needs

Requires openocd installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 154 stars on the source repository.

What this skill does

Raspberry Pi Pico 2 and Debug Probe This skill covers development with Raspberry Pi Pico 2 (RP2350) boards and the Raspberry Pi Debug Probe. It includes hardware specs, SDK setup, build configuration, debugging workflows, and common pitfalls. Reference Files Consult these for detailed technical content. Read only the file relevant to the current task: references/pico2-hardware.md - RP2350 specs, RP2040 vs RP2350 comparison, pin layout, wireless variant, security features, chip variants references/debug-probe.md - Debug Probe hardware, wiring diagrams, OpenOCD setup, GDB workflow, UART serial, RTT, VS Code integration, rescue mode, troubleshooting references/sdk-toolchain.md - pico-sdk setup, CMake configuration, ARM vs RISC-V builds, picotool commands, MicroPython/CircuitPython, project structure Quick Reference Board Selection (CMake) Board CMake Flag Platform ------- ----------- ---------- Pico 1 -DPICOBOARD=pico (default) rp2040 Pico 1 W -DPICOBOARD=picow rp2040 Pico 2 -DPICOBOARD=pico2 rp2350-arm-s Pico 2 W -DPICOBOARD=pico2w rp2350-arm-s Pico 2 RISC-V -DPICOBOARD=pico2 -DPICOPLATFORM=rp2350-riscv rp2350-riscv Debug Probe Wiring (SWD) Debug Probe "D" Pin Wire Colour Pico 2 SWD Pad --------------------- ------------- ----------------- SC Orange SWCLK GND Black GND SD Yellow SWDIO Debug Probe Wiring (UART) Debug Probe "U" Pin Wire Colour Pico 2 Pin GPIO --------------------- ------------- ------------ ------ TX Orange Pin 2 GP1 (RX) RX Yellow Pin 1 GP0 (TX) GND Black Pin 3 GND Note the crossover: probe TX to Pico RX, probe RX to Pico TX. OpenOCD Target Configs Target Config File -------- ------------ Pico 1 (RP2040) target/rp2040.cfg Pico 2 (RP2350) target/rp2350.cfg Pico 2 RISC-V target/rp2350.cfg with -c "set USECORE { rv0 rv1 }" Rescue (RP2350) target/rp2350.cfg with -c "set RESCUE 1" Typical Debug Session Flash via SWD Use the .elf file for SWD flashing, not .uf2. Gotchas These are the most common mistakes and non-obvious behaviours. Pay close attention. 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sammcj/raspberry-pi

View the source on GitHub

Browse the @skills marketplace