Menu

I built a open source debug probe for WCH MCUs
📰
0

I built a open source debug probe for WCH MCUs

Reddit r/embedded·u/BreadWestern9159·about 1 month ago
#enTbR15O
#openocd#debug#probe#flash#article#discussion
Reading 0:00
15s threshold

I built a open source debug probe for WCH MCUs If you’ve been working with the CH32V20x/30x series (QingKe V4 RISC-V), you’ve probably felt the pain of the WCH-LinkE. It’s closed-source, Windows-centric, and uses a "ping-pong" USB protocol that turns a 64KB SRAM dump into a 60-second coffee break. Worst of all, it requires a OpenOCD fork that is distributed through Emails only. I decided to stop waiting and built RVSWD\_pico. It’s a fully open-source debug probe firmware for the Raspberry Pi Pico that treats the WCH hardware with the respect it deserves. I didn’t just build a probe; I forked OpenOCD to make this possible. No more email-ware. It includes the support of this probe, a flash driver for the CH32V2/3 series (that is actually a SiP with a separate NOR flash die), and flash breakpoints for V4A/B: I patched the RISC-V debug logic to support transparent 16-bit flash patching. /path/to/openocd -s /path/to/openocd/tcl -f interface/ddmi\_demo.cfg -f target/wch\_min.txt -c "init" That's all, enjoy.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More