blob: 4463be81167a601e8bc874adb52c8b8193d01aa7 [file] [log] [blame]
Philip Attfieldc14e9522016-09-14 07:57:07 +02001# RPi3b
2
3tcl_port 5555
4telnet_port 4444
5gdb_port 3333
6
7transport select jtag
8
9adapter_khz 1000
10
11jtag_ntrst_delay 100
12reset_config trst_only separate
13
14set _CHIPNAME rpi3b
15
16set _TARGETNAME_0 $_CHIPNAME.cpu0
17set _TARGETNAME_1 $_CHIPNAME.cpu1
18set _TARGETNAME_2 $_CHIPNAME.cpu2
19set _TARGETNAME_3 $_CHIPNAME.cpu3
20
21jtag newtap $_CHIPNAME dap -irlen 4 -expected-id 0x4ba00477
22
23target create $_TARGETNAME_0 aarch64 -chain-position $_CHIPNAME.dap -dbgbase 0x80010000 -ctibase 0x80018000
24#target create $_TARGETNAME_1 aarch64 -chain-position $_CHIPNAME.dap -dbgbase 0x80012000 -ctibase 0x80019000
25#target create $_TARGETNAME_2 aarch64 -chain-position $_CHIPNAME.dap -dbgbase 0x80014000 -ctibase 0x8001a000
26#target create $_TARGETNAME_3 aarch64 -chain-position $_CHIPNAME.dap -dbgbase 0x80016000 -ctibase 0x8001b000
27
28#target smp $_CHIPNAME.cpu3 $_CHIPNAME.cpu2 $_CHIPNAME.cpu1 $_CHIPNAME.cpu0
29
30proc rpi3b_gdb_attach {target} {
31 echo "gdb attach halt ..."
32 targets 0
33 halt
34}
35
36$_TARGETNAME_0 configure -event gdb-attach {
37 halt
38}