Open hadirkhan10 opened 3 years ago
@jamesdunn @jerryz123 anyone looking into this problem?
It sounds like your issue is identical to this one.
In that issue, the user found that it was an OS configuration causing issues with their OpenOCD build.
I also noticed that your issue here in sim is similar to what you experienced here in hardware (error related to flush).
Could you give us some information about your OS configuration? In particular, are you running OpenOCD using the same OS configuration that you used to build both the riscv-tools and the riscv-openocd binary? The user in the first issue I mentioned built things using Centos 8 and copied files over to a Centos 7 installation.
No I built it on the same OS, in-fact I also downloaded the already prebuilt binaries of OpenOCD and RISCV GNU Toolchain from the SiFive website.
My Ubuntu version is: Ubuntu 20.04.1 LTS
I was able to reproduce this error on both Ubuntu 20.04 and Centos 7, as well as with different Rocket configurations (TinyRocketConfig and RocketConfig).
For future debugging, please run OpenOCD with the verbose -d
flag and the verilator binary with the +verbose
option.
Similar to the issue I mentioned in my first comment, I see a Signal 13 termination in the OpenOCD output, which means that a pipe has been closed prematurely, probably by the simulator.
When I run the simulator in verbose mode, I see that the it actually passes and terminates after 18125 cycles.
*** PASSED *** Completed after 18125 cycles
Do you see the same behavior?
The verbose verilator output gives the full assembly trace, so I'll need to look into that to see what's going on.
Hey @jamesdunn I recently met a bizarre issue when tring to install the riscv openocd , I post the issue in chipyard maillist: https://groups.google.com/g/chipyard/c/82qT9DzWtuA . Do you mind taking a look ? Thanks
Tell us about your environment: Chipyard Version: 1.4.0
What is the current behavior? I have generated a default configuration using the command below:
Then invoking the simulator with the following command to listen for openocd connections:
After this I am trying to connect the openocd with the following configuration file:
Then invoking the openocd with the following command:
results in the following error:
What is the expected behavior? The openocd should connect with the verilator simulator
Other information The config used for the Arty FPGA support also uses the
TinyRocketConfig
so the generated RTL should have a proper debug module implemented. Not sure what is causing this issue.