用wch-link debug不了

MounRiver Studio,wch-link, ch32v208wb

能下载,但是不能debug,下面是调试器打印的信息


Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2024-09-06-14:19)

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-Link-CH549  mode:RV version 2.12 

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 : device id = 0xa7d87a76

Info : flash size = 160kbytes

Info : ROM 128 kbytes RAM 64 kbytes

Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"

Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (4770 ms). Workaround: increase "set remotetimeout" in GDB

Warn : Failed to read memory via program buffer.

Warn : Failed to read memory via abstract access.

Error: Target wch_riscv.cpu.0: Failed to read memory (addr=0x6db4)

Error:   progbuf=failed, sysbus=skipped (unsupported size), abstract=failed

Error: Target wch_riscv.cpu.0: Failed to read memory (addr=0x6d36)

Error:   progbuf=failed, sysbus=skipped (unsupported size), abstract=failed

Error: [wch_riscv.cpu.0] unable to resume

Error: [wch_riscv.cpu.0]   dmstatus=0x00000c82


您好,可以检查一下BOOT0是否连接了GND,注意BOOT0要接GND。此外,可以新建工程试一下debug是否正常,注意ld文件中FLASH、RAM的配置要和MCU的配置一致。


有时可以用有时又不可以用,但是要点击重启多次才行,LD文件的配置是对的。


只有登录才能回复,可以选择微信账号登录