This is an automated email from Gerrit.

Gaëtan Carlier ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2277

-- gerrit

commit c0aac27420f23e71a67d467e3436a14bdde02494
Author: Gaëtan Carlier <[email protected]>
Date:   Fri Aug 29 14:36:40 2014 +0200

    target: add SRAM configuration for Freescale K60
    
    Add work-area-phys configuration.
    SRAM is divided in two area SRAM_L and SRAM_U centered
    on 0x20000000. So work-area-size can not exceed real size/2
    
    Change-Id: I1883786bcd88f61ff9c988caa58b4fb92aeb006c
    Signed-off-by: Gaëtan Carlier <[email protected]>

diff --git a/tcl/target/k60.cfg b/tcl/target/k60.cfg
index a368e0b..c9aad50 100644
--- a/tcl/target/k60.cfg
+++ b/tcl/target/k60.cfg
@@ -19,6 +19,16 @@ if { [info exists ENDIAN] } {
     set _ENDIAN little
 }
 
+# Work-area is a space in RAM used for flash programming
+# By default use 4kB.
+# WORKAREASIZE must be SRAM_size/2 max (cf SRAM configurations
+# section 3.5.3.2 of reference manual).
+if { [info exists WORKAREASIZE] } {
+   set _WORKAREASIZE $WORKAREASIZE
+} else {
+   set _WORKAREASIZE 0x1000
+}
+
 if { [info exists CPUTAPID] } {
     set _CPUTAPID $CPUTAPID
 } else {
@@ -31,6 +41,8 @@ swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id $_CPU
 
 target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
 
+$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 
$_WORKAREASIZE -work-area-backup 0
+
 $_CHIPNAME.cpu configure -event examine-start { puts "START..." ; }
 $_CHIPNAME.cpu configure -event examine-end { puts "END..." ; }
 

-- 

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to