cva6-sdk
cva6-sdk copied to clipboard
Debug with OpenOCD
Hi. I have some questions about debug. 1:As you said, I go to this page "https://github.com/riscv/riscv-openocd", and installed the OpenOCD , but it doesn't said how to use it to gdb , could you tell me how to use it? 2:OpenOCD need configuration file for debug, but there isn't have the OpenOCD configuration file for digilent genesys 2 ,how can i get the corresponding configuration file.
Many thanks for your reply.
The openocd config file is in the main Ariane (or CVA6) repository.
As soon as you launch openocd and it sucessfully connects to the FPGA it outputs a port on which you can run riscv-gdb on.
ok, I'll try it, after tring ,I'll tell you the result . Thanks for your reply
Sorry. After trying, it will report the following error
root@delta:/home/delta/riscv-openocd# openocd -f fpga/ariane.cfg
Open On-Chip Debugger 0.10.0+dev-01229-g9ed670771 (2020-08-06-14:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter speed' not 'adapter_khz'
DEPRECATED! use 'adapter driver' not 'interface'
Info : auto-selecting first available session transport "jtag". To override use 'transport select
please tell me how to solve this problem.
Just to check: are you sure you use the correct ariane image and the correct jtag usb port?
I'm sure that my ariane image is correct. But jtag is configured by using vivado's I/O layout. I configured JA1_P, JA1_N, JA2_P, JA2_N to TDO, TDI, TCK, TMS respectively
Why do you configure your IO? The release image of ariane already has the correct ports specified.
Oh,this is my mistake, I will try again and get back to you,thanks