tcl/target/stm32l4x: set default WORKAREASIZE to smallest device
[fw/openocd] / tcl / target / stm32l4x.cfg
index 5899791938edf2484c29d2f9cdc3d6327b9bc923..103d741e2b73c7383389200433260ef986e99db8 100644 (file)
@@ -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