blob: f801f6a8a4dad5db17e8ffc1ea6117e5b555dcd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
debug_level 0
adapter speed 10000
adapter driver remote_bitbang
remote_bitbang host localhost
remote_bitbang port 1234
# we don't have srst
reset_config trst_only
set _CHIPNAME riscv
set _TARGETNAME $_CHIPNAME.cpu
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10002FFF
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
foreach t [jtag names] {
puts [format "TAP: %s\n" $t]
}
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
riscv set_reset_timeout_sec 2000
riscv set_command_timeout_sec 2000
riscv set_prefer_sba on
scan_chain
init
reset halt
echo "Ready for Remote Connections on port 3333."
|