From: Uwe Bonnes Date: Wed, 2 Mar 2016 12:36:54 +0000 (+0100) Subject: tcl/target/stm32f4x.cfg: Use Workareasize of smallest possible device. X-Git-Tag: v0.10.0-rc1~131 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66d29eb6e3041146e2bb316d0e471e69d781b07d;p=openocd 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 Reviewed-on: http://openocd.zylin.com/3378 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- diff --git a/tcl/board/stm32f429discovery.cfg b/tcl/board/stm32f429discovery.cfg index eddaa9f6..e06d2a51 100644 --- a/tcl/board/stm32f429discovery.cfg +++ b/tcl/board/stm32f429discovery.cfg @@ -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 diff --git a/tcl/board/stm32f469discovery.cfg b/tcl/board/stm32f469discovery.cfg index eecfe339..63b13638 100644 --- a/tcl/board/stm32f469discovery.cfg +++ b/tcl/board/stm32f469discovery.cfg @@ -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 diff --git a/tcl/board/stm32f4discovery.cfg b/tcl/board/stm32f4discovery.cfg index f5b52920..963e0f95 100644 --- a/tcl/board/stm32f4discovery.cfg +++ b/tcl/board/stm32f4discovery.cfg @@ -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 diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg index 7205c461..14fc2ffb 100644 --- a/tcl/target/stm32f4x.cfg +++ b/tcl/target/stm32f4x.cfg @@ -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