With additional patch fixing some spaghetti that was preventing compilation in recent compilers (e.g. implicit integer to pointer conversions, ch32x_write_options()
was broken (arm wch only))
Works with WCH-LinkE @v2.11 firmware.
It may be necessary to update the adapter firmware, use the WCH-LinkUtility to update the firmware. (attached one is trying to instal "CH345" driver instead of wlinke, you may need to extract and install WCHLinkDrv_WHQL_S.exe driver manually before launching)
First you need to use e.g. zadig to install WinUSB on "WCH-Link (interface 0)"
You cannot use the proprietary and WinUSB (libusb) drivers at the same time. (proprietary one is capable of installing on top of WinUSB, WCH tools are trying to install it automatically)
Recommended way of changing drivers is to uninstall previous driver first and then install new one:
device manager -> select WCH-Link(RV) ->properties -> driver -> uninstall device -> select box to "remove software for this device"
then unplug adepter and plug in again.
-f "interface/wlink.cfg" -f "target/wch-riscv.cfg"
ch347 (aka ch342 aka ch345) based adapters (HS jtag) still require DLL driver due to missing header file treideme#1 (GPL violation of course)