ch32-rs / wlink

An open source WCH-Link library/command line tool written in Rust.
Apache License 2.0
178 stars 32 forks source link

Add debugging via openocd #31

Open mrx23dot opened 1 year ago

andelf commented 1 year ago

I haven't dug into the gdb debugging protocol yet. I prefer to leave it to openocd. Or pyocd.

mrx23dot commented 1 year ago

Sure, but when I change the USB driver can I still use it with vanila openocd? Also WCH uses some modified openocd.

andelf commented 1 year ago

I came up with an idea to access the Windows driver. The underlying driver interface is open-sourcepublished: https://github.com/openwch/usb-jtag-spi/blob/9c925295ed755563bd91c59f7da0b6c5e4e0b1ab/src/WIN%20APP/External/CH375DLL.H