Change default WORKAREASIZE to 12kbytes for stm32f3x.

stm32f334k8 only has 12kbytes of SRAM and
flashing with the default WORKAREA of 16kbytes
will fail for images > 12k.

Change-Id: If9be0b0e7cd6e4ba15a130d8e06c74e4a0e22a61
Signed-off-by: Maximilian Schneider <max@schneidersoft.net>
Reviewed-on: https://review.openocd.org/c/openocd/+/9283
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Maximilian Schneider
2025-12-05 21:31:39 +01:00
committed by Tomas Vanek
parent 517fd8e4b5
commit 41e165eee2

View File

@@ -17,11 +17,11 @@ if { [info exists CHIPNAME] } {
set _ENDIAN little set _ENDIAN little
# Work-area is a space in RAM used for flash programming # Work-area is a space in RAM used for flash programming
# By default use 16kB # By default use 12kB
if { [info exists WORKAREASIZE] } { if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE set _WORKAREASIZE $WORKAREASIZE
} else { } else {
set _WORKAREASIZE 0x4000 set _WORKAREASIZE 0x3000
} }
# Allow overriding the Flash bank size # Allow overriding the Flash bank size