使用CH32V307-EVT-R1,进行调试,首先提示必须升级WCH-linker固件,没有问题,升级后,CH32V307,可以单步调试
将CH32V307-EVT-R1的wch-linker,外接CH32V103-R1-1.40,下载程序没有问题,信息如下:
------------ Begin flash process of "obj\CH32V103C8T6.hex" ------------
14:07:09:543 >> Current project vendor is WCH, debugger is WCH-Link
14:07:09:544 >> Starting to Open Link in RISC-V APP mode...
14:07:09:545 >> Open Link in RISC-V APP mode Success
14:07:09:545 >> Starting to get link mode...
14:07:09:559 >> Link is under APP mode
14:07:09:559 >> Starting to compare firmware version...
14:07:09:559 >> No need to update. Already the latest version. Version is v2.3.
14:07:09:559 >> Starting to Send Chip Type...
14:07:09:567 >> Send Chip Type Success
14:07:09:567 >> Starting to Erase All...
14:07:09:577 >> Erase All Success
14:07:09:577 >> Starting to Download & Verify...
14:07:10:652 >> Download & Verify Success
14:07:10:652 >> Starting to Reset...
14:07:10:655 >> Reset Success
14:07:10:655 >> Starting to Close Link...
14:07:10:655 >> Close Link Success
Operation Finished (took 1s.112ms)
---------------------------------End ----------------------------------
可以选择调试,依然进行不下去,信息如下:
Open On-Chip Debugger 0.11.0+dev-02215-gcc0ecfb6d-dirty (2022-03-10-09:55)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
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 version 2.3
Info : wlink_init ok
Info : This adapter doesn't support configurable speed
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Warn : Bypassing JTAG setup events due to errors
Info : [riscv.cpu.0] datacount=2 progbufsize=8
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x0
[riscv.cpu.0] Target successfully examined.
Info : starting gdb server for riscv.cpu.0 on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x37f4abcd
Info : flash size = 0kbytes
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Warn : Bypassing JTAG setup events due to errors
|