WCH-LinkE 调试 CH585M 出错

用WCH-LinkE 调试 CH585M 出现如下错误:(MounRiver Studio 1.92)


Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2024-07-29-15:30)

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.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=0x40901106

[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"

Error: error writing to flash at address 0x00000000 at offset 0x00000000

Info : dropped 'gdb' connection


可以看下开启仿真之后,选择585的芯片,然后点击下载和仿真。最新的版本是2.14的。

image.png

image.png


我的 MounRiver Studio 版本 v1.92 没有 CH585M 选择。最高只有 CH583M。


在这里进行选择:

image.png


1731683236496385.png

1731683236111520.png

n

接线.jpg




您好,我购买此评估板,文档中只有USB和ISP下载方式,当然这两种方式都可以下载,不过太麻烦了。想请教下如何使用debug双线口进行下载?编译器已经按照您提供的进行设置,出现了图一中的报错。


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