ch32-rs / wlink

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

Add debugging via openocd #31

Open mrx23dot opened 9 months ago

andelf commented 9 months ago

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

mrx23dot commented 9 months 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 9 months 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