cfg: stm32l use minimum family ram size for working area
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 6 Dec 2012 15:39:36 +0000 (15:39 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 30 Dec 2012 11:34:46 +0000 (11:34 +0000)
The smallest pert in the family has 10k RAM, so use that as a default
for the working area.

Change-Id: I78be0d14a254c109ac15a7163552c6132f810416
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1005
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
tcl/target/stm32l.cfg
tcl/target/stm32lx_stlink.cfg

index 940a4e798561bc9dd81cf22227e84fa4b7e9d11d..eea082e65d80fbb78c69703a0ff3b6fedc124218 100644 (file)
@@ -13,11 +13,11 @@ if { [info exists ENDIAN] } {
 }
 
 # Work-area is a space in RAM used for flash programming
-# By default use 14kB
+# By default use 10kB
 if { [info exists WORKAREASIZE] } {
    set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set _WORKAREASIZE 0x3800
+   set _WORKAREASIZE 0x2800
 }
 
 # JTAG speed should be <= F_CPU/6.
index ed9865d068939db9abf64996e56f699561bc65f4..6bec2b58c6d5ef037e54cc261f887a1e1f25c48c 100644 (file)
@@ -11,7 +11,7 @@ if { [info exists CPUTAPID] == 0 } {
 }
 
 if { [info exists WORKAREASIZE] == 0 } {
-   set WORKAREASIZE 0x3800
+   set WORKAREASIZE 0x2800
 }
 
 source [find target/stm32_stlink.cfg]