update 'flash bank' usage in scripts
[fw/openocd] / tcl / target / at91r40008.cfg
index e8710f7f3859417544f96317d01e6e34a4b3e32c..9069ae563b15f3c4cbe375bf3b9929c55f42bf0b 100644 (file)
@@ -45,7 +45,8 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
 
 $_TARGETNAME configure -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
 
-flash bank cfi 0x10000000 0x400000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x10000000 0x400000 2 2 $_TARGETNAME
 
 # For more information about the configuration files, take a look at:
 # openocd.texi