aappleby / picorvd

GDB-compatible RISC-V Debugger for CH32V003 that runs on a Raspberry Pi Pico
MIT License
173 stars 10 forks source link

Which SWIO pin to connect 3.3v to? #13

Closed niansa closed 6 days ago

niansa commented 1 month ago

Connect pin PD1 on your CH32V device to the Pico's SWIO pin (defaults to pin GP28), connect CH32V ground to Pico ground, and add a 1Kohm pull-up resistor from SWIO to +3.3v.

from SWIO to +3.3v

What SWIO pin is this referring to? The SWIO pin on the Pico (GP28)? Or the SWIO pin on the CH32V?

niansa commented 1 month ago

When connecting to the SWIO pin on the CH32V board, the CH32V turns on together with the Pico, despite nothing being connected to the V pins. So that concerns me.

niansa commented 1 month ago

I got it working eventually as PD1 seems to be the same as the SWIO pin on the CH32V board.

But the PC doesn't advance, it's just stuck at 0.