Skip to content

arv3/wlink

 
 

Repository files navigation

wlink - WCH-Link(RV) command line tool

Note This tool may not be ready for production use. This fork is an LLM-asssisted port to Zig 0.16.

Feature Support

  • Flash firmware, support Intel HEX, ELF and raw binary format
  • Erase chip
  • Halt, resume, reset support
  • Read chip info
  • Read chip memory(flash)
  • Read/write chip register - very handy for debugging
  • Code-Protect & Code-Unprotect for supported chips
  • Enable or Disable 3.3V, 5V output
  • SDI print support, requires 2.10+ firmware
  • Serial port watching for a smooth development experience
  • Windows native driver support, no need to install libusb manually (requires x86 build)

Probes

Current firmware version: 2.15 (aka. v35).

NOTE: If you are using newer chips like CH32V317 or CH585, be sure to use the latest firmware.

NOTE: The firmware version is not the same as the version shown by WCH's toolchain. Because WCH calculates the version number by major * 10 + minor, so the firmware version 2.10 is actually v30 0x020a.

  • WCH-Link CH549 - the first version, reflash required when switching mode
  • WCH-LinkE CH32V305 - the recommended debug probe
  • WCH-LinkW CH32V208 - wireless version
  • WCH-Link? CH32V203

MCU

References

License

This project is licensed under the MIT or Apache-2.0 license, at your option.

About

An open source WCH-Link library/command line tool written in Zig.

Resources

Stars

Watchers

Forks

Contributors

Languages