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>
transport select hla_swd
+# increase working area to 128KB
+set WORKAREASIZE 0x20000
+
source [find target/stm32f4x.cfg]
reset_config srst_only
transport select hla_swd
+# increase working area to 128KB
+set WORKAREASIZE 0x20000
+
source [find target/stm32f4x.cfg]
reset_config srst_only
transport select hla_swd
+# increase working area to 64KB
+set WORKAREASIZE 0x10000
+
source [find target/stm32f4x.cfg]
reset_config srst_only
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