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 <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1378
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Paul Fertser 2013-05-05 01:09:15 +04:00 committed by Spencer Oliver
parent 4264431824
commit 49af0788e9
3 changed files with 5 additions and 5 deletions

View File

@ -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] } {

View File

@ -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

View File

@ -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]