tcl: Add support for Kontron SMARC-sAL28
[fw/openocd] / tcl / target / at91sam3u4c.cfg
index e8fdababafc0a472d9fabcf4b0e5894a2c3ef02b..14af008b6cbd5124dc383bf1d6c7b3fe8b4856a0 100644 (file)
@@ -2,8 +2,8 @@
 source [find target/at91sam3uxx.cfg]
 
 # size is automatically "calculated" by probing
-flash bank at91sam3 0x000080000 0 1 1 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash0
+flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME
 # This is a 256K chip, it has the 2nd bank
-flash bank at91sam3 0x000100000 0 1 1 $_TARGETNAME
-
-
+set _FLASHNAME $_CHIPNAME.flash1
+flash bank $_FLASHNAME at91sam3 0x000100000 0 1 1 $_TARGETNAME