riscv-tests icon indicating copy to clipboard operation
riscv-tests copied to clipboard

debug test failed to read memory

Open Van2Jo opened this issue 1 year ago • 2 comments

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)

Van2Jo avatar Jan 31 '24 08:01 Van2Jo

@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.

en-sc avatar Jan 31 '24 08:01 en-sc

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"

Van2Jo avatar Feb 01 '24 07:02 Van2Jo