projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tcl/target/stm32l4x: set default WORKAREASIZE to smallest device
[fw/openocd]
/
tcl
/
target
/
stm32l4x.cfg
diff --git
a/tcl/target/stm32l4x.cfg
b/tcl/target/stm32l4x.cfg
index 7f08f3c4bab79ac1135c54fc4ae10eec5a5244e3..103d741e2b73c7383389200433260ef986e99db8 100644
(file)
--- 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
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 {
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
- set _WORKAREASIZE 0x
8
000
+ set _WORKAREASIZE 0x
a
000
}
#jtag scan chain
}
#jtag scan chain
@@
-47,8
+47,8
@@
target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_CHIPNAME.dap
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
-set _FLASHNAME $_CHIPNAME.flash
-flash bank $_
FLASHNAME stm32l4x
0 0 0 0 $_TARGETNAME
+flash bank $_CHIPNAME.flash stm32l4x 0x08000000 0 0 0 $_TARGETNAME
+flash bank $_
CHIPNAME.otp stm32l4x 0x1fff700
0 0 0 0 $_TARGETNAME
if { [info exists QUADSPI] && $QUADSPI } {
set a [llength [flash list]]
if { [info exists QUADSPI] && $QUADSPI } {
set a [llength [flash list]]