From: Felipe Balbi Date: Fri, 13 Mar 2015 22:10:42 +0000 (-0500) Subject: tcl: target: am437x.cfg: pass correct dbgbase X-Git-Tag: v0.9.0-rc1~66 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=589affe35bf49da421e977928120111cea8eb27e;ds=sidebyside 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 Change-Id: Iaf2617804324de8094b25137943e08b84f14c75f Reviewed-on: http://openocd.zylin.com/2602 Tested-by: jenkins Reviewed-by: Paul Fertser Reviewed-by: Tom Rini --- diff --git a/tcl/target/am437x.cfg b/tcl/target/am437x.cfg index e9a660613e..d6e1afaf9a 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