diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-18 02:15:52 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-19 13:39:41 -0800 |
commit | 2dfa5e9c844a5a3f8aaca146c874f13570b8f667 (patch) | |
tree | 30178e8d65d17c173619a3a8b9921b8d4f911210 /tcl/target/at91sam3u4c.cfg | |
parent | fd654c8a3e3dbd5ab97eb6b3834ee462dd509a66 (diff) | |
download | riscv-openocd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.zip riscv-openocd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.gz riscv-openocd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.bz2 |
update 'flash bank' usage in scripts
Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the
first argument to 'flash bank'.
Diffstat (limited to 'tcl/target/at91sam3u4c.cfg')
-rw-r--r-- | tcl/target/at91sam3u4c.cfg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tcl/target/at91sam3u4c.cfg b/tcl/target/at91sam3u4c.cfg index e8fdaba..e281287 100644 --- a/tcl/target/at91sam3u4c.cfg +++ b/tcl/target/at91sam3u4c.cfg @@ -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 |