stars-under
- 改过的shell脚本 CH32V208 烧录报错:
Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-09-28-11:32)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport ophttps://discuss.em-ide.com/d/465tion; autoselect 'jtag'
Ready for Remote Connections
Error: unknow WCH-LINK
- 换成 openocd -f ./tools/wch_openocd/bin/wch-riscv.cfg \ 报错 :
Info : only one transport option; autoselect 'sdi'
./tools/wch_openocd/bin/wch-riscv.cfg:3: Error: invalid command name "wlink_set"
in procedure 'script'
at file "embedded:startup.tcl", line 26
at file "./tools/wch_openocd/bin/wch-riscv.cfg", line 3
- 使用 MounRiver_Studio 下的 wch-riscv.cfg 文件; 修改 firmwareFile=$(echo $1 | sed 's/([a-zA-Z])(.*)/\2/g; s/://g' | sed 's/\/\//g') 还是报错:
Ready for Remote Connections
Info : WCH-LinkE mode:RV version 2.14
Info : wlink_init ok
Info : clock speed 6000 kHz
Info : [wch_riscv.cpu.0] datacount=2 progbufsize=8
Info : [wch_riscv.cpu.0] Examined RISC-V core; found 1 harts
Info : [wch_riscv.cpu.0] XLEN=32, misa=0x40901105
[wch_riscv.cpu.0] Target successfully examined.
Info : starting gdb server for wch_riscv.cpu.0 on 3333
Info : Listening on port 3333 for gdb connections
Info : device id = 0x7af6ae20
Info : flash size = 160kbytes
Info : ROM 128 kbytes RAM 64 kbytes
erased sectors 0 through 159 on flash bank 0 in 0.143123s
wrong # args: should be "program filename ?arg ...?"