-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjlink.cfg
41 lines (32 loc) · 1.43 KB
/
jlink.cfg
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
33
34
35
36
37
38
39
40
41
interface jlink
tcl_port 5555
telnet_port 4444
gdb_port 3333
transport select jtag
# enable even though not connected...?
#reset_config none
reset_config trst_and_srst
# reset_config trst_only
#reset_config trst_only separate
#reset_config trst_and_srst separate trst_push_pull srst_open_drain
adapter_khz 1000
jtag_ntrst_delay 1000
set _CHIPNAME rpi3b
set _DAP_TAPID 0x4ba00477
jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -enable
set _TARGETNAME_0 $_CHIPNAME.cpu
set _TARGETNAME_1 $_CHIPNAME.cpu1
set _TARGETNAME_2 $_CHIPNAME.cpu2
set _TARGETNAME_3 $_CHIPNAME.cpu3
target create $_TARGETNAME_0 aarch64 -chain-position $_CHIPNAME.dap -coreid 0 -dbgbase 0x80010000 -ctibase 0x80018000
target create $_TARGETNAME_1 aarch64 -chain-position $_CHIPNAME.dap -coreid 1 -dbgbase 0x80012000 -ctibase 0x80019000
target create $_TARGETNAME_2 aarch64 -chain-position $_CHIPNAME.dap -coreid 2 -dbgbase 0x80014000 -ctibase 0x8001A000
target create $_TARGETNAME_3 aarch64 -chain-position $_CHIPNAME.dap -coreid 3 -dbgbase 0x80016000 -ctibase 0x8001B000
$_TARGETNAME_0 configure -event gdb-attach { $_TARGETNAME_0 arp_halt
echo "connecting..." }
$_TARGETNAME_1 configure -event gdb-attach { $_TARGETNAME_1 arp_halt
echo "connecting..." }
$_TARGETNAME_2 configure -event gdb-attach { $_TARGETNAME_2 arp_halt
echo "connecting..." }
$_TARGETNAME_3 configure -event gdb-attach { $_TARGETNAME_3 arp_halt
echo "connecting..." }