| 123456789101112131415161718192021222324252627282930313233343536 |
- # ref: http://www.raspberrypi.org/forums/viewtopic.php?f=72&t=100268
- # : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0464f/ch10s06s01.html
- adapter speed 1000
- adapter srst delay 400
- reset_config none
- if { [info exists CHIPNAME] } {
- set _CHIPNAME $CHIPNAME
- } else {
- set _CHIPNAME rpi2
- }
- #
- # Main DAP
- #
- if { [info exists DAP_TAPID] } {
- set _DAP_TAPID $DAP_TAPID
- } else {
- set _DAP_TAPID 0x4ba00477
- }
- jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0xf -expected-id $_DAP_TAPID
- dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
- set _TARGETNAME $_CHIPNAME.cpu.0
- target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x80010000
- set _TARGETNAME $_CHIPNAME.cpu.1
- target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x80012000
- set _TARGETNAME $_CHIPNAME.cpu.2
- target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 2 -dbgbase 0x80014000
- set _TARGETNAME $_CHIPNAME.cpu.3
- target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 3 -dbgbase 0x80016000
- $_TARGETNAME configure -event reset-assert-post "cortex_a dbginit"
-
- $_TARGETNAME configure -event gdb-attach { halt }
|