From 49af0788e9fdfff45bcf72c4013497b568b42ede Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sun, 5 May 2013 01:09:15 +0400 Subject: [PATCH] stm32 configs: use 4kB working area size by default This is needed for configs that might be used with the cheapest STM32F100 parts that have only 4kB SRAM. Restrictions for the other STM32 families are verified to be set appropriately. Change-Id: I1ad2370435015604db9f27c1a76c153480311a28 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/1378 Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/target/stm32_stlink.cfg | 4 ++-- tcl/target/stm32f1x.cfg | 4 ++-- tcl/target/stm32f1x_stlink.cfg | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tcl/target/stm32_stlink.cfg b/tcl/target/stm32_stlink.cfg index 7dccd47302..96bce5f002 100644 --- a/tcl/target/stm32_stlink.cfg +++ b/tcl/target/stm32_stlink.cfg @@ -9,11 +9,11 @@ if { [info exists CHIPNAME] } { } # Work-area is a space in RAM used for flash programming -# By default use 16kB +# By default use 4kB (as found on some STM32F100s) if { [info exists WORKAREASIZE] } { set _WORKAREASIZE $WORKAREASIZE } else { - set _WORKAREASIZE 0x4000 + set _WORKAREASIZE 0x1000 } if { [info exists CPUTAPID] } { diff --git a/tcl/target/stm32f1x.cfg b/tcl/target/stm32f1x.cfg index 7d3f42f3b9..12d33d52c5 100644 --- a/tcl/target/stm32f1x.cfg +++ b/tcl/target/stm32f1x.cfg @@ -13,11 +13,11 @@ if { [info exists ENDIAN] } { } # Work-area is a space in RAM used for flash programming -# By default use 16kB +# By default use 4kB (as found on some STM32F100s) if { [info exists WORKAREASIZE] } { set _WORKAREASIZE $WORKAREASIZE } else { - set _WORKAREASIZE 0x4000 + set _WORKAREASIZE 0x1000 } # JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz diff --git a/tcl/target/stm32f1x_stlink.cfg b/tcl/target/stm32f1x_stlink.cfg index 9faaf6a0b3..3b7daef08d 100644 --- a/tcl/target/stm32f1x_stlink.cfg +++ b/tcl/target/stm32f1x_stlink.cfg @@ -11,7 +11,7 @@ if { [info exists CPUTAPID] == 0 } { } if { [info exists WORKAREASIZE] == 0 } { - set WORKAREASIZE 0x4000 + set WORKAREASIZE 0x1000 } source [find target/stm32_stlink.cfg] -- 2.30.2