aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/stm32l1x_dual_bank.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/stm32l1x_dual_bank.cfg')
-rw-r--r--tcl/target/stm32l1x_dual_bank.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/tcl/target/stm32l1x_dual_bank.cfg b/tcl/target/stm32l1x_dual_bank.cfg
new file mode 100644
index 00000000..7420b315
--- /dev/null
+++ b/tcl/target/stm32l1x_dual_bank.cfg
@@ -0,0 +1,8 @@
+source [find target/stm32l1.cfg]
+
+# The stm32l1x 384kb have a dual bank flash.
+# Let's add a definition for the second bank here.
+
+# Add the second flash bank.
+set _FLASHNAME $_CHIPNAME.flash1
+flash bank $_FLASHNAME stm32lx 0x8030000 0 0 0 $_TARGETNAME