我用openocd下代码
Info : device id = 0x7b45b051
Info : flash size = 288kbytes
Info : ROM 192 kbytes RAM 128 kbytes
Info : Flash write discontinued at 0x00028778, next section at 0x00030000
Warn : no flash bank found for address 0x00048000
报错是为什么
我用openocd下代码
Info : device id = 0x7b45b051
Info : flash size = 288kbytes
Info : ROM 192 kbytes RAM 128 kbytes
Info : Flash write discontinued at 0x00028778, next section at 0x00030000
Warn : no flash bank found for address 0x00048000
报错是为什么
您好,有可能是代码超出192K的范围了,可将FLASH、RAM的配置修改成288K+32K试一下。此外,麻烦说一下是调试还是命令行下载,完整的输出信息是啥,可以截图发出来看一下。
Info : only one transport option; autoselect 'sdi'
Warn : Transport "sdi" was already selected
Ready for Remote Connections
Info : WCH-LinkE mode:RV version 2.9
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=0x40901125
[wch_riscv.cpu.0] Target successfully examined.
Info : gdb port disabled
** Programming Started **
Info : device id = 0x7b45b051
Info : flash size = 288kbytes
Info : ROM 192 kbytes RAM 128 kbytes
Info : Flash write discontinued at 0x00028778, next section at 0x00030000
Warn : no flash bank found for address 0x00048000
** Programming Finished **
shutdown command invoked
另外,我用了CH32的非零等待区,所以代码是比192K大的,如果用MRS是可以下载的
而且我注意到他报回来的log显示
Info : flash size = 288kbytes
Info : ROM 192 kbytes RAM 128 kbytes
Info : Flash write discontinued at 0x000284e0, next section at 0x00030000
Warn : no flash bank found for address 0x00048000
我有两个问题:
1. Info : Flash write discontinued at 0x000284e0, next section at 0x00030000这句是在说什么意思,为什么flash写入没有继续
2. 0x00048000是288kbytes,但是我整个配置都没有288kbytes,这个288kbytes是从哪蹦出来的