Skip to content

Commit 983ff2d

Browse files
committed
Testing debug
1 parent 25cb9d1 commit 983ff2d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.vscode/launch-gd32vf103.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"target remote | riscv-openocd/src/openocd -s riscv-openocd/tcl -c \"gdb_port pipe; log_output openocd.log\" -f scripts/gd32vf103/flash-init.ocd -f interface/cmsis-dap.cfg -f scripts/gd32vf103/gd32vf103.ocd -f scripts/gd32vf103/debug.ocd ",
2424

2525
// After loading the Application, run these gdb commands. The Application ELF image does not contain a valid Image Header.
26+
// Based on https://github.com/Tencent/TencentOS-tiny/blob/master/doc/RISC-V%20eclipse%20%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA.md
27+
"monitor riscv expose_csrs 3040-3071",
2628
"monitor reset halt", // Restart and halt
2729
"flushregs", // Flush the register cache
2830

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"target remote | riscv-openocd/src/openocd -s riscv-openocd/tcl -c \"gdb_port pipe; log_output openocd.log\" -f scripts/gd32vf103/flash-init.ocd -f interface/cmsis-dap.cfg -f scripts/gd32vf103/gd32vf103.ocd -f scripts/gd32vf103/debug.ocd ",
2424

2525
// After loading the Application, run these gdb commands. The Application ELF image does not contain a valid Image Header.
26+
// Based on https://github.com/Tencent/TencentOS-tiny/blob/master/doc/RISC-V%20eclipse%20%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA.md
2627
"monitor riscv expose_csrs 3040-3071",
2728
"monitor reset halt", // Restart and halt
2829
"flushregs", // Flush the register cache

0 commit comments

Comments
 (0)