Created
April 3, 2015 17:24
-
-
Save jitomesky/4b564b33ef774d359d9d to your computer and use it in GitHub Desktop.
OpenOCD target config file for Raspberry Pi 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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_khz 1000 | |
adapter_nsrst_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 dap -irlen 4 -ircapture 0x01 -irmask 0xf -expected-id $_DAP_TAPID | |
set _TARGETNAME $_CHIPNAME.cpu.0 | |
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap -coreid 0 -dbgbase 0x80010000 | |
set _TARGETNAME $_CHIPNAME.cpu.1 | |
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap -coreid 1 -dbgbase 0x80012000 | |
set _TARGETNAME $_CHIPNAME.cpu.2 | |
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap -coreid 2 -dbgbase 0x80014000 | |
set _TARGETNAME $_CHIPNAME.cpu.3 | |
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap -coreid 3 -dbgbase 0x80016000 | |
$_TARGETNAME configure -event reset-assert-post "cortex_a dbginit" | |
$_TARGETNAME configure -event gdb-attach { halt } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment