Philip Attfield | c14e952 | 2016-09-14 07:57:07 +0200 | [diff] [blame] | 1 | # RPi3b |
| 2 | |
| 3 | tcl_port 5555 |
| 4 | telnet_port 4444 |
| 5 | gdb_port 3333 |
| 6 | |
| 7 | transport select jtag |
| 8 | |
| 9 | adapter_khz 1000 |
| 10 | |
| 11 | jtag_ntrst_delay 100 |
| 12 | reset_config trst_only separate |
| 13 | |
| 14 | set _CHIPNAME rpi3b |
| 15 | |
| 16 | set _TARGETNAME_0 $_CHIPNAME.cpu0 |
| 17 | set _TARGETNAME_1 $_CHIPNAME.cpu1 |
| 18 | set _TARGETNAME_2 $_CHIPNAME.cpu2 |
| 19 | set _TARGETNAME_3 $_CHIPNAME.cpu3 |
| 20 | |
| 21 | jtag newtap $_CHIPNAME dap -irlen 4 -expected-id 0x4ba00477 |
| 22 | |
| 23 | target 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 | |
| 30 | proc 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 | } |