CH32V208 单步调试支持的 Flash 大小问题

CH32V208 Flash 可以有480k之多。但是用WCH Link 单步调试只能到160K。下面是开始下载调试的信息。注意有 “Info : flash size = 160kbytes” 这一行。问题是修改哪里来增加这个大小。



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

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! (1856 ms). Workaround: increase "set remotetimeout" in GDB

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

Info : dropped 'gdb' connection


您好,调试配置处按下图修改试一下。

image.png


您好,若要解除debug时对零等待区域的限制,可按照下图配置试一下

image.png



嗯。受教了。


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