Skip to content
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

debug test failed to read memory #530

Open
Van2Jo opened this issue Jan 31, 2024 · 2 comments
Open

debug test failed to read memory #530

Van2Jo opened this issue Jan 31, 2024 · 2 comments

Comments

@Van2Jo
Copy link

Van2Jo commented Jan 31, 2024

Examine Target.log have fail result
Warn : [riscv.cpu] Failed to read memory via program buffer
Warn : [riscv.cpu] Failed to read memory (addr=0x0) negative acknowledgment, but no packet pending
Error : [riscv.cpu] progbuf=failed, sysbus=disabled, abstract=disableed
Error : [riscv.cpu] Failed to read memory (addr=0x2)

@en-sc
Copy link
Collaborator

en-sc commented Jan 31, 2024

@Van2Jo, can you please provide more context, more specifically:

  • What is the name of the failed test? On which platform did the failure occur?
  • How are you running the tests?
  • Please, attach verbose logs to the ticket. These can be obtained by passing -d3 flag to OpenOCD. Note that the logs can be quite large.

@Van2Jo
Copy link
Author

Van2Jo commented Feb 1, 2024

I am try run gdb after simulated vcs : ./gdbserver.py targets/Sifive/Freedom/E300.py S0 --isolate --print-failed

How to modify read memory addr, addr= 0x0 is invalid
this is target cfg file
######################## cfg ###################
adapter speed
2000
adapter driver remote_bitbang
remote_bitbang host localhost
remote_bitbang port 44853
set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id0x10001f2f

$_TARGETNAME riscv -chain-position$_TARGETNAME

riscv set_reset_timeout_sec 1000
riscv set_command_timeout_sec 50000

init
halt
reset
echo "Ready for Remote Connections"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants