summaryrefslogtreecommitdiffstats
path: root/tcl
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-03-13 17:10:42 -0500
committerPaul Fertser <fercerpav@gmail.com>2015-04-14 10:59:08 +0100
commit589affe35bf49da421e977928120111cea8eb27e (patch)
tree969b5c616b721d31e65da5bcb0076ba31ed43826 /tcl
parentd3c2679bcb8e8ba25e7b6e443b39f57474afc099 (diff)
downloadopenocd-589affe35bf49da421e977928120111cea8eb27e.tar.gz
openocd-589affe35bf49da421e977928120111cea8eb27e.tar.xz
tcl: target: am437x.cfg: pass correct dbgbase
Since commit ec9ccaa28849 (arm_adi_v5: make dap_lookup_cs_component() traverse subtables and handle multicore) AM437x devices can't be used with OpenOCD anymore. The reason is that dbgbase used to be set to zero before that commit and that just happens to work with AM437x devices. A more robust solution is to pass correct dbgbase when creating the target, which this commit does. Signed-off-by: Felipe Balbi <balbi@ti.com> Change-Id: Iaf2617804324de8094b25137943e08b84f14c75f Reviewed-on: http://openocd.zylin.com/2602 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/am437x.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/am437x.cfg b/tcl/target/am437x.cfg
index e9a66061..d6e1afaf 100644
--- a/tcl/target/am437x.cfg
+++ b/tcl/target/am437x.cfg
@@ -45,7 +45,7 @@ jtag configure $_CHIPNAME.jrc -event post-reset "runtest 100"
# Cortex A9 target
#
set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap
+target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap -dbgbase 0x80000000
# SRAM: 64K at 0x4030.0000; use the first 16K
$_TARGETNAME configure -work-area-phys 0x40300000 -work-area-size 0x4000