Closed abdullahyildiz closed 3 years ago
I noticed that I should run the simulation as follows:
./work-ver/Variane_testharness +jtag_rbb_enable=1 --rbb-port=38000 ~/Desktop/riscv-tests/benchmarks/dhrystone.riscv
This time I can successfully connect OpenOCD and GDB to simulation.
By the way, socket connection between simulation and OpenOCD is very slow. I think it is normal and expected.
I'm trying to connect to Verilator simulation from GDB. However, simulation finishes before OpenOCD connects to simulation executable and opens a new GDB port:
In the first terminal window I run:
$ ./work-ver/Variane_testharness --rbb-port=38000 ~/Desktop/riscv-tests/benchmarks/dhrystone.riscv
In the second terminal window I run:
$ openocd --command 'gdb_port 0' --command 'tcl_port disabled' --command 'telnet_port disabled' -f ariane.cfg
Here is my OpenOCD config file:
I think compiling the program with -ggdb option should be sufficient. Is there anyone who encountered this issue before?