Skip to content

how i can run wch linkE on linux #8

Open

Description

@thinhx2

In windows os, i changed mode to linkrv,change wch driver to winusb, opeocd windows version detected LinkE

In linux, im complied source but openocd not detect linke. this is log:

thinhx2@thinhx2:~/wch/openocd-wch/src$ ./openocd -f '/home/thinhx2/wch/openocd-wch/tcl/interface/wlink.cfg' -f '/home/thinhx2/wch/openocd-wch/tcl/target/wch-riscv.cfg'
Open On-Chip Debugger 0.11.0+dev-g62850cbf8-dirty (2026-04-01-02:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'sdi'
Warn : Transport "sdi" was already selected
sdi
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: open failed

it same as wch driver on windows

how i can fix it?

Activity

  1. jnk0le commented on Apr 2, 2026

    @jnk0le
    Owner

    didn't do linux dev, but I think you would need udev rules installed.

    probably something like this?

    https://github.com/gregdavill/CH32V307-makefile-example/blob/main/vendor/50-wch.rules

    sudo cp ./50-wch.rules   /etc/udev/rules.d  
    sudo udevadm control --reload-rules
    

    or https://matrix.ruyisdk.org/reports/CH32V103-FreeRTOS-README_pio/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions