aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/sam7x256.cfg
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-18 02:15:52 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-19 13:39:41 -0800
commit2dfa5e9c844a5a3f8aaca146c874f13570b8f667 (patch)
tree30178e8d65d17c173619a3a8b9921b8d4f911210 /tcl/target/sam7x256.cfg
parentfd654c8a3e3dbd5ab97eb6b3834ee462dd509a66 (diff)
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/sam7x256.cfg')
-rw-r--r--tcl/target/sam7x256.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/target/sam7x256.cfg b/tcl/target/sam7x256.cfg
index c3f7cd9c..5bab6421 100644
--- a/tcl/target/sam7x256.cfg
+++ b/tcl/target/sam7x256.cfg
@@ -46,7 +46,8 @@ $_TARGETNAME configure -event reset-init {
$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
#flash bank <driver> <base_addr> <size> <chip_width> <bus_width> <target_number> [<target_name> <banks> <sectors_per_bank> <pages_per_sector> <page_size> <num_nvmbits> <ext_freq_khz>]
-flash bank at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
# For more information about the configuration files, take a look at:
# openocd.texi