Releases: jnk0le/openocd-wch
MRS 1.80 r2 liberated
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. (proprietry 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)
MRS 1.80 r1
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 install driver manually before launching)
First, you need to install proprietary drivers (WCHLinkDrv_WHQL_S.exe in WCH-LinkUtility package) to be able to use it with wchlink. zadig trick doesn't work. (use the liberated builds for that)
-f "interface/wlink.cfg" -f "target/wch-riscv.cfg"
MRS 1.80 r1 liberated
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. (proprietry 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)
MRS 1.60 r1
With additional rtt patch (should work on ch32v307). All further releases contain this patch.
works with WCH-LinkE @v2.7 firmware
First, you need to install proprietary drivers (WCHLinkDrv_WHQL_S.exe that I have extracted from wchlink-utility, or just run wchlink-utility for auto install) to be able to use it with wchlink. zadig trick doesn't work.
-f "interface/wlink.cfg" -f "target/wch-riscv.cfg"
Unlike in stm32, ch32 seems to continue execution after debug session was terminated.
MRS 1.60 build
works with WCH-LinkE @v2.7 firmware
First, you need to install proprietary drivers (WCHLinkDrv_WHQL_S.exe that I have extracted from wchlink-utility, or just run wchlink-utility for auto install) to be able to use it with wchlink. zadig trick doesn't work.
-f "interface/wlink.cfg" -f "target/wch-riscv.cfg"
Unlike in stm32, ch32 seems to continue execution after debug session was terminated.