CH32V203K8T6仿真连接始终报错,无法进行。 需要查bug,很不友好,协助协助

Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-07-03-15:11)

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.10 

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 = 0x1a6babcd

Info : flash size = 2031680kbytes

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! (7243 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=0x93c6)

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

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

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

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

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

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

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


您好,若能正常下载但不能进入调试模式,注意一下BOOT的连接是否正确,BOOT0引脚要接GND。此外可删除调试文件,重新点击调试按键生成试一下,后续若有问题,可通过邮箱(lzs@wch.cn)和我沟通


Ld文件的Flash和RAM分配与实际芯片分配不一致,使用WCH-LinkUtility查看芯片Flash和RAM分配,选择修改ld文件或者使用WCH-LinkUtility修改芯片分配


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