Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BCM2837 Raspberry Pi 3 Target
- transport select jtag
- adapter_khz 10000
- reset_config trst_and_srst
- adapter_nsrst_delay 1500
- if { [info exists CHIPNAME] } {
- set _CHIPNAME $CHIPNAME
- } else {
- set _CHIPNAME bcm2387
- }
- #
- # Main DAP
- #
- if { [info exists DAP_TAPID] } {
- set _DAP_TAPID $DAP_TAPID
- } else {
- set _DAP_TAPID 0x4ba00477
- }
- jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -enable
- set _TARGETNAME $_CHIPNAME.cpu
- target create ${_TARGETNAME}0 aarch64 -chain-position $_CHIPNAME.dap -coreid 0 -dbgbase 0x80010000 -ctibase 0x80018000 -rtos hawt
- target create ${_TARGETNAME}1 aarch64 -chain-position $_CHIPNAME.dap -coreid 1 -dbgbase 0x80012000 -ctibase 0x80019000;# -defer-examine
- target create ${_TARGETNAME}2 aarch64 -chain-position $_CHIPNAME.dap -coreid 2 -dbgbase 0x80014000 -ctibase 0x8001a000;# -defer-examine
- target create ${_TARGETNAME}3 aarch64 -chain-position $_CHIPNAME.dap -coreid 3 -dbgbase 0x80016000 -ctibase 0x8001b000;# -defer-examine
- ${_TARGETNAME}0 configure -event gdb-attach "halt"
- target smp ${_TARGETNAME}0 ${_TARGETNAME}1 ${_TARGETNAME}2 ${_TARGETNAME}3
- targets ${_TARGETNAME}0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement