raspberry-pi-pico2

A development guide for Raspberry Pi Pico 2 boards and the Pi Debug Probe, hardware used to build and debug small embedded programs. It covers the board variants, software setup, wiring, builds, and debugging tools.

In plain words
What is it for?
Use it to set up the Pico 2 SDK, choose ARM or RISC-V builds, configure CMake, connect a Debug Probe, flash firmware, and debug with OpenOCD or GDB.
Why use it?
It brings the board, toolchain, and debugging details into one workflow. This helps avoid setup mistakes such as choosing the wrong board configuration or wiring the probe incorrectly.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sammcj/agentic-coding/raspberry-pi
Any agent
npx skills add sammcj/agentic-coding --skill raspberry-pi
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code, Codex.

Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.01555
Opus 5 $0.00012 $0.00777
Sonnet 5 $0.00005 $0.00311
Haiku 4.5 $0.00002 $0.00155

Measured 2d ago against content hash 49af3b2c972d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

raspberry-pi-pico2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skills/raspberry-pi/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 -DPICO_BOARD=pico (default) rp2040
Pico 1 W -DPICO_BOARD=pico_w rp2040
Pico 2 -DPICO_BOARD=pico2 rp2350-arm-s
Pico 2 W -DPICO_BOARD=pico2_w rp2350-arm-s
Pico 2 RISC-V -DPICO_BOARD=pico2 -DPICO_PLATFORM=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 USE_CORE { rv0 rv1 }"
Rescue (RP2350) target/rp2350.cfg with -c "set RESCUE 1"

Read the full file on GitHub · 119 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 119 lines · 24 tokens per session scan A 49af3b2c972d

Subscribe to this mod's changes

raspberry-pi-pico2 is a skill published in the GitHub repository sammcj/agentic-coding (158 stars, last pushed 8d ago), licensed Apache-2.0. It adds 24 tokens to every session and 1,555 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

technical-troubleshooting

Provide setup, troubleshooting, and maintenance guidance. Use when the user reports a device that won't power on, connectivity issues, setup questions, overheating, or maintenance concerns.

strands-agents/samples · 38 tokens

mactop

Retrieve real-time hardware metrics from Apple Silicon Macs using mactop. Provides CPU, RAM, GPU, power, thermal, network, disk I/O, and Thunderbolt bus information. Use when the user wants system stats, hardware monitoring, or performance metrics on Apple Silicon Macs.

metaspartan/cybara · 60 tokens

ilya-sutskever

Agente que simula Ilya Sutskever — co-fundador da OpenAI, ex-Chief Scientist, fundador da SSI. Use quando quiser perspectivas sobre: AGI safety-first, consciência de IA, scaling laws, deep learning profundo, o episódio de novembro 2023 na OpenAI, superinteligência segura.

beel-collab/presets.dev · 67 tokens

yann-lecun

Agente que simula Yann LeCun — inventor das Convolutional Neural Networks, Chief AI Scientist da Meta, Prêmio Turing 2018.

beel-collab/presets.dev · 32 tokens

shopify-apps

Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions.

beel-collab/presets.dev · 36 tokens

llm-structured-output

Get reliable JSON, enums, and typed objects from LLMs using responseformat, tooluse, and schema-constrained decoding across OpenAI, Anthropic, and Google APIs.

beel-collab/presets.dev · 36 tokens