前段時間是好的。今天突然遇到這個問題:
使用 WCHISPTOOL 下載和解鎖 調(diào)試接口都是好的,但是調(diào)試的時候無法進入,我該如何解決?
WCHISPTOOL? LOG 如下:
????????????Device#0? UID:1C-07-40-7A-4E-E0-AA-61, BTVER:02.30?
????????????15:04:22:082>> 開啟調(diào)試接口成功!
?????????????
????????????Device#0? UID:1C-07-40-7A-4E-E0-AA-61, BTVER:02.30?
????????????15:04:35:150>> 待下載BIN文件長度:8056B
?????????????
????????????15:04:35:196>> [#Dev0]開始下載...
?????????????
????????????15:04:35:208>> BTVER:02.30?
????????????15:04:35:216>> UID:1C-7-40-7A-4E-E0-AA-61?
????????????15:04:35:312>> 擦除中...?
????????????15:04:35:335>> 擦除長度: 448K?
????????????15:04:35:482>> 完成?
????????????15:04:35:512>> 編程中...?
????????????15:04:35:657>> 完成?
????????????15:04:35:688>> 校驗中...?
????????????15:04:35:862>> 完成?
????????????15:04:35:905>> 成功!
?????????????
????????????15:04:35:917>> <<<< 本次用時:0.723s
?
調(diào)試窗口日志如下:
????????????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 : 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
????????????Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1739 ms).? ? ? ? Workaround: increase "set remotetimeout" in GDB
????????????Info : dropped 'gdb' connection