-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugging is not working !!! #26
Comments
Please check https://github.com/chipsalliance/Cores-SweRV-Support-Package (SSP) . There is SweRVolf integrated already with SweRV EH1 1.8 and proven Open On-Chip Debugger 0.10.0+dev-01255-g2c909f8 (2020-09-29-10:12) . Your problem will high probably disappear if you run you experiments within Cores-SweRV-Support-Package environment with this SweRVolf and SweRV EH1 1.8, however you may extract from the SSP installation what you need. |
I tried "Cores-SweRV-Support-Package (SSP)". Thanks. |
My answer to your ssp install problem can be found in the issue you have opened there. Back to your question. The last 2 lines in $SWERVOLF_ROOT/data/swervolf_sim.cfg are: |
Thanks for the prompt reply. Thanks again. |
Dear Codasip,
Error: Failed to read priv register.
|
Hi @kidonglee . There is another thing that you should know about. When the |
Ah, I looked at your original report now and see that you already load an elf file. It looks like everything should be ok. I will need to check if I can see any issues here. One thing that caught my eyes is Perhaps you could run halt again after the resume command and You can also add Hope this helps |
This looks very strange. I will need to investigate |
Dear olofk, I am sorry to bother you but I wonder if there is any progress with this issue. Thanks |
Dear olofk, I look into RTL code and find some clue. Thanks. |
I am following the 'debugging' sequences.
In normal simulation, "SweRV+FuseSoC rocks" is displayed.
But, in debug mode, there is no response from simulator after "releasing reset" message.
Please check the simulation results, as below,
Thanks in advance.
[test sequences]
fusesoc run --target=sim --run swervolf --jtag_vpi_enable
openocd -f $SWERVOLF_ROOT/data/swervolf_sim.cfg
telnet localhost 4444
[terminal message output]
- in terminal A
INFO: Running
INFO: Running simulation
Starting jtag_vpi server: interface 127.0.0.1 (loopback), port 5555/tcp ...
jtag_vpi server created.
Waiting for client connection...
Client connection accepted.
JTAG VPI enabled. Not loading RAM
Releasing reset
- in terminal B
Open On-Chip Debugger 0.10.0+dev-01402-gccb21ab5a (2020-10-20-17:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Info : Set server port to 5555
Info : Set server address to 127.0.0.1
Warn :
riscv set_prefer_sba
is deprecated. Please useriscv set_mem_access
instead.Info : Connection to 127.0.0.1 : 5555 succeed
Info : This adapter doesn't support configurable speed
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (), part: 0x0000, ver: 0x0)
Info : datacount=2 progbufsize=0
Warn : We won't be able to execute fence instructions on this target. Memory may not always appear consistent. (progbufsize=0, impebreak=0)
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40001104
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'telnet' connection on tcp/4444
- in terminal C
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
The text was updated successfully, but these errors were encountered: