From: Spencer Oliver Date: Thu, 6 Dec 2012 15:39:36 +0000 (+0000) Subject: cfg: stm32l use minimum family ram size for working area X-Git-Tag: v0.7.0-rc1~116 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=84043a95e1744884a9cd8132789c94e13b0312d2 cfg: stm32l use minimum family ram size for working area 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 Reviewed-on: http://openocd.zylin.com/1005 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- diff --git a/tcl/target/stm32l.cfg b/tcl/target/stm32l.cfg index 940a4e7985..eea082e65d 100644 --- a/tcl/target/stm32l.cfg +++ b/tcl/target/stm32l.cfg @@ -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. diff --git a/tcl/target/stm32lx_stlink.cfg b/tcl/target/stm32lx_stlink.cfg index ed9865d068..6bec2b58c6 100644 --- a/tcl/target/stm32lx_stlink.cfg +++ b/tcl/target/stm32lx_stlink.cfg @@ -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]