2021-04-30 08:41:24 +00:00
|
|
|
debug_level 2
|
|
|
|
adapter_khz 10000
|
|
|
|
|
|
|
|
interface remote_bitbang
|
|
|
|
remote_bitbang_host localhost
|
|
|
|
|
|
|
|
remote_bitbang_port 9999
|
|
|
|
|
|
|
|
set _CHIPNAME riscv
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1e200a6f
|
|
|
|
|
|
|
|
foreach t [jtag names] {
|
|
|
|
puts [format "TAP: %s\n" $t]
|
|
|
|
}
|
|
|
|
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
|
|
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
|
|
|
|
|
2021-05-14 06:37:47 +00:00
|
|
|
riscv set_reset_timeout_sec 10
|
|
|
|
riscv set_command_timeout_sec 20
|
2021-04-30 08:41:24 +00:00
|
|
|
|
|
|
|
# prefer to use sba for system bus access
|
|
|
|
riscv set_prefer_sba on
|
|
|
|
riscv set_enable_virt2phys off
|
|
|
|
|
|
|
|
# dump jtag chain
|
|
|
|
scan_chain
|
|
|
|
|
|
|
|
init
|
|
|
|
|
|
|
|
halt
|
|
|
|
echo "Ready for Remote Connections"
|