Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Deprecated, use 'wlink' instead. Command line tool to switch WCH-LinkE modes between DAP and RV from host.

License

Notifications You must be signed in to change notification settings

cjacker/wchlinke-mode-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wchlinke-mode-switch

This tool is deprecated by wlink, mode switch already supported by wlink, please use wlink instead.

'wchlinke-mode-switch' is a command-line tool to switch WCH-LinkE (with latest firmware) modes between DAP and RV from host, and tested with WCH official WCH-LinkE and MuseLab nano WCH-LinkE adapter.

WCH-LinkE support online debugging and downloading of WCH RISC-V MCU (2 wires RVSWD / ch32v003 1 wire SDI interface), and also support online debugging and downloading of ARM MCU with SWD/JTAG interface. It also have a serial port.

The dual modes (DAP / RV) of WCH-LinkE can be switched by some official close source utilities, such as MounRiver Studio, WCHISPTool, etc. And also can be switched by onboard 'ModeS' button (and why it have a case ?!)

For more infomation about WCH-LinkE, please refer to official manual.

If this utility doesn't work as expected, please refer to official manual to update the firmware to latest version.

Install:

$ make
$ sudo make install DESTDIR=<as you specify>

Usage:

$ wchlinke-mode-switch

For switching from DAP mode to RV mode, the output looks like:

Found WCH Link or E in DAP Mode.
Switch to RV Mode.

For switching from DAP mode to RV mode, the output looks like:

Found WCH Link or E in RV Mode.
Switch to DAP Mode.

NOTE1 : only WCH-LinkE can be supported, old WCH-LINK is deprecated and can not use this tool to switch mode from host. Mounriver studio will flash a new firmware each time to swith the modes of old WCH-LINK(without E).

About

Deprecated, use 'wlink' instead. Command line tool to switch WCH-LinkE modes between DAP and RV from host.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published