Skip to content

cjacker/wch-openocd-2022

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source of official WCH OpenOCD (2022 version)

The outdated source of WCH OpenOCD (about 2022 version) will be hosted here for WCH-Link/E with old version firmware.

  • Improved to support WCH-LinkE r0 1v3 hardware.
  • Work with old version WCH-Link/LinkE firmware if it didn't update to latest version.
  • Support program / debug WCH ch32v003/103/20x/30x.

It's highly recommended to update the firmware to latest version and use latest WCH OpenOCD, please refer to "how to update firmware of WCH-Link/E"

Installation

./bootstrap
./configure --prefix=/opt/wch-openocd-2022 --enable-wlink --disable-linuxgpiod --disable-werror --program-prefix=wch- --program-suffix=-2022
make
sudo make install

After installation successfully, please add /opt/wch-openocd/bin to your PATH env, the command is "wch-openocd-2022".

Usage

wch-openocd-2022 -f /opt/wch-openocd/share/openocd/scripts/interface/wlink.cfg -f /opt/wch-openocd/share/openocd/scripts/target/wch-riscv.cfg

You may combine this two config file to one and copy the final wch-riscv.cfg to your project dir to avoid using such a long PATH.

About

old version WCH OpenOCD to work with old version WCH-LinkE firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.8%
  • Assembly 2.3%
  • HTML 2.1%
  • Tcl 1.9%
  • Perl 1.2%
  • Makefile 0.7%
  • Other 2.0%