Reputation: 31
RISCV behavior model SPIKE, support debugging through rbb port. So we can debug it by gdb.
In the following picture, I setup SPIKE rbb_port at :18700, openocd connect to spike and service at :3973, gdb connect to openocd via :3973.
:3973 :18700
It likes this: riscv64-unkonwn-elf-gdb --------> openocd --------> rbb of SPIKE
You can found we use a specified gdb.
**I think i can debug elf file on SPIKE after mounting these tools (riscv64-unkonwn-elf-gdb) into jetbrains CLion. **
I tried some configuration in CLion, But not work.
I tried two configuraion
I manual specify a formal openocd path, It make sense. setting openocd successful
====================== BUT =====================================
Clion need tcl_port do some thing. Is any one know this isuue?
dobule check, gdb do not need tcl_port from openocd.
Upvotes: 0
Views: 403
Reputation: 31
Solution: Creating an "Embedded GDB Server" run/debug configuration (https://www.jetbrains.com/help/clion/embedded-gdb-server.html#gdbserver-config) and recreate in it everything in the command line.
Upvotes: 0