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/str710.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tcl/target/str710.cfg') diff --git a/tcl/target/str710.cfg b/tcl/target/str710.cfg index 8e5d36f0..395a26cd 100644 --- a/tcl/target/str710.cfg +++ b/tcl/target/str710.cfg @@ -39,8 +39,10 @@ $_TARGETNAME configure -event gdb-flash-erase-start { $_TARGETNAME configure -work-area-phys 0x2000C000 -work-area-size 0x4000 -work-area-backup 0 #flash bank str7x 0 0 -flash bank str7x 0x40000000 0x00040000 0 0 0 STR71x -flash bank str7x 0x400C0000 0x00004000 0 0 0 STR71x +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME str7x 0x40000000 0x00040000 0 0 0 STR71x +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME str7x 0x400C0000 0x00004000 0 0 0 STR71x # For more information about the configuration files, take a look at: # openocd.texi -- cgit v1.2.3