All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

SWD Debug Probe for RP2350 RISC-V Cores Using Raspberry Pi Pico 2

By

jackdoe

6mo ago· 8 min readenCode

Summary

This article describes a SWD (Serial Wire Debug) debug probe implementation for RP2350 RISC-V (Hazard3) cores using Raspberry Pi Pico 2 hardware. The project enables one Pico 2 microcontroller to debug another via just two GPIO wires. The author notes that about 80% of the code was 'vibe coded' (likely AI-assisted), with the readme mostly generated, but emphasizes that the core functionality was developed through hands-on work with oscilloscopes and documentation. The project includes a comprehensive test suite and is used in the author's own projects, though it comes with warnings about potential issues.

Key quotes

· 4 pulled
SWD debug probe for RP2350 RISC-V (Hazard3) cores. One Pico2 debugs another via two GPIO wires.
About 80% of the code is vibe coded; The readme is almost completely generated (except the whole vibe-code-warning section).
I spent many nights with the oscilloscope and the docs and made a working prototype that was able to do sba/read/write regs and do abstract commands and progbuf, the rest was done with claude code.
The tests are quite comprehensive test suite and I use the core of the library in my own projects, but, as they say, 'hic sunt dracones'.
Snippet from the RSS feed
Contribute to jackdoe/pico2-swd-riscv development by creating an account on GitHub.

You might also wanna read