update 'flash bank' usage in scripts

Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the
first argument to 'flash bank'.
This commit is contained in:
Zachary T Welch
2009-11-18 02:15:52 -08:00
parent fd654c8a3e
commit 2dfa5e9c84
58 changed files with 138 additions and 69 deletions

View File

@@ -2,8 +2,10 @@
source [find target/at91sam3uxx.cfg]
# size is automatically "calculated" by probing
flash bank at91sam3 0x000080000 0 1 1 $_TARGETNAME
set _FLASHNAME $_CHIPNAME.flash
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.flash
flash bank $_FLASHNAME at91sam3 0x000100000 0 1 1 $_TARGETNAME