aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Reiter <me@reitermark.us>2022-04-16 19:02:21 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-04-23 09:23:41 +0000
commitd47aaf6d92788efc90c6d3379d58132e7ddfa781 (patch)
tree3d807ccea6ebe3ce5251fe1129bb9a1c00a357b1
parenta5035849d671fc7821b7b864f0e103d6a0521915 (diff)
downloadriscv-openocd-d47aaf6d92788efc90c6d3379d58132e7ddfa781.zip
riscv-openocd-d47aaf6d92788efc90c6d3379d58132e7ddfa781.tar.gz
riscv-openocd-d47aaf6d92788efc90c6d3379d58132e7ddfa781.tar.bz2
tcl/target/stm32l4x: set default WORKAREASIZE to smallest device
Change-Id: Ia8bfb664ff28bd0579492032ce513b010e71c593 Signed-off-by: Markus Reiter <me@reitermark.us> Reviewed-on: https://review.openocd.org/c/openocd/+/6931 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
-rw-r--r--tcl/target/stm32l4x.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcl/target/stm32l4x.cfg b/tcl/target/stm32l4x.cfg
index 5899791..103d741 100644
--- a/tcl/target/stm32l4x.cfg
+++ b/tcl/target/stm32l4x.cfg
@@ -15,11 +15,11 @@ if { [info exists CHIPNAME] } {
set _ENDIAN little
# Work-area is a space in RAM used for flash programming
-# Smallest current target has 64kB ram, use 32kB by default to avoid surprises
+# By default use 40kB (Available RAM in smallest device STM32L412)
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
- set _WORKAREASIZE 0x8000
+ set _WORKAREASIZE 0xa000
}
#jtag scan chain