进行在线调试会报错:
Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-05-05-13:43)
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
Ready for Remote Connections
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : WCH-LinkE mode:RV version 2.9
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 : accepting 'gdb' connection on tcp/3333
Info : flash size = 448kbytes
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : [wch_riscv.cpu.0] Found 4 triggers
Error: [wch_riscv.cpu.0] unable to resume
Error: [wch_riscv.cpu.0] dmstatus=0x00000c82
Error: [wch_riscv.cpu.0] unable to resume
Error: [wch_riscv.cpu.0] dmstatus=0x00000c82