From 2dfa5e9c844a5a3f8aaca146c874f13570b8f667 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Wed, 18 Nov 2009 02:15:52 -0800 Subject: update 'flash bank' usage in scripts Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the first argument to 'flash bank'. --- tcl/target/at91sam7sx.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcl/target/at91sam7sx.cfg') diff --git a/tcl/target/at91sam7sx.cfg b/tcl/target/at91sam7sx.cfg index 2a7f90c5..f3cc88e9 100644 --- a/tcl/target/at91sam7sx.cfg +++ b/tcl/target/at91sam7sx.cfg @@ -49,7 +49,8 @@ $_TARGETNAME configure -event reset-init { $_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0 #flash bank [ ] -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 -- cgit v1.2.3