使用MounRiver編譯GPIO例程通過,點擊燒錄也可以成功,但需要手動重啟。修改代碼重新編譯、燒錄也是生效的。
但點擊調(diào)試之后,沒有跑起來,以下是控制臺log,是哪里出問題了?怎樣才可以進(jìn)行單步調(diào)試?
Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-09-22-10:36)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
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-LinkE? mode:RV version 2.11?
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 = 0x7b72bdde
Info : flash size = 160kbytes
Info : ROM 128 kbytes RAM 64 kbytes
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : [wch_riscv.cpu.0] Found 4 triggers