tcl/target/stm32f4x.cfg: Use Workareasize of smallest possible device.

Increase workareasize when it is know we have a larger device.

Change-Id: Ieaee92e7cd25cc201989f14de122349698871412
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-on: http://openocd.zylin.com/3378
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
Uwe Bonnes 2016-03-02 13:36:54 +01:00 committed by Andreas Fritiofson
parent aed0d5d730
commit 66d29eb6e3
4 changed files with 11 additions and 2 deletions

View File

@ -7,6 +7,9 @@ source [find interface/stlink-v2.cfg]
transport select hla_swd
# increase working area to 128KB
set WORKAREASIZE 0x20000
source [find target/stm32f4x.cfg]
reset_config srst_only

View File

@ -7,6 +7,9 @@ source [find interface/stlink-v2-1.cfg]
transport select hla_swd
# increase working area to 128KB
set WORKAREASIZE 0x20000
source [find target/stm32f4x.cfg]
reset_config srst_only

View File

@ -5,6 +5,9 @@ source [find interface/stlink-v2.cfg]
transport select hla_swd
# increase working area to 64KB
set WORKAREASIZE 0x10000
source [find target/stm32f4x.cfg]
reset_config srst_only

View File

@ -15,11 +15,11 @@ if { [info exists CHIPNAME] } {
set _ENDIAN little
# Work-area is a space in RAM used for flash programming
# By default use 64kB
# By default use 32kB (Available RAM in smallest device STM32F410)
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
set _WORKAREASIZE 0x10000
set _WORKAREASIZE 0x8000
}
#jtag scan chain