riscv-software-src / riscv-tests

Other
890 stars 461 forks source link

debug test failed to read memory #530

Open Van2Jo opened 9 months ago

Van2Jo commented 9 months ago

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 commented 9 months ago

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

Van2Jo commented 9 months ago

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"