求助 => buntu 22.04 WCH-LinkE openocd 無(wú)法使用

OS:ubuntu 22.04

openocd: WCH 特別版本,如下

$ ./openocd --version
?? Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-10-10-10:35)
?? Licensed under GNU GPL v2
?? For bug reports, read
?? http://openocd.org/doc/doxygen/bugs.html


原有的 WCH-Link 可正常運(yùn)行 openocd,如下

裝置檢查

$ lsusb

Bus 001 Device 041: ID 1a86:8010 QinHeng Electronics WCH-Link

$ ls -la /dev/bus/usb/001/041
crw-rw----+ 1 root plugdev 189, 40? 3月 12 16:50 /dev/bus/usb/001/041

運(yùn)行 openocd

$ ./openocd -f wch-riscv.cfg -c init -c halt -c exit
Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-10-10-10:35)
Licensed under GNU GPL v2
For bug reports, read
?? ?http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Ready for Remote Connections
Info : WCH-Link-CH549? mod:RV version 2.8
Info : wlink_init ok
Info : This adapter doesn't support configurable speed
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (), part: 0x0000, ver: 0x0)
Warn : Bypassing JTAG setup events due to errors
Info : [riscv.cpu.0] datacount=2 progbufsize=8
Info : Examined RISC-V core; found 1 harts
Info :? hart 0: XLEN=32, misa=0x0
[riscv.cpu.0] Target successfully examined.
Info : starting gdb server for riscv.cpu.0 on 3333
Info : Listening on port 3333 for gdb connections
可正常運(yùn)行

======= 分割線 =======

新購(gòu)買(mǎi) WCH-LinkE (為了 CH32V003F4P6 開(kāi)發(fā))

裝置檢查

$ lsusb

Bus 001 Device 042: ID 1a86:8010 QinHeng Electronics WCH-Link

$ ls -la /dev/bus/usb/001/042
crw-rw----+ 1 root plugdev 189, 40? 3月 12 16:50 /dev/bus/usb/001/042

運(yùn)行 openocd

$ ./openocd -f wch-riscv.cfg -c init -c halt -c exit

Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-10-10-10:35)
Licensed under GNU GPL v2
For bug reports, read
?? ?http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Ready for Remote Connections
Error: unknow WCH-LINK


請(qǐng)問(wèn)是哪里出了問(wèn)題 ?


用這個(gè):https://github.com/karlp/openocd-hacks


自行編譯安裝,然后這樣使用:


openocd?-f interface/wlink.cfg -f target/wch-riscv.cfg?-c "program yourprogram.hex" -c wlink_reset_resume -c exit


Ubuntu22.04, Wch-LinkE, CH32v003,親測(cè)可用。


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频