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