target.cfg: use $_TARGETNAME for flash
[fw/openocd] / tcl / target / at91r40008.cfg
index fe755b4d96f6ee45ce4ccbdb354de19de343c108..eb6cabaa2818597d3e266b392712661a174b9b80 100644 (file)
@@ -45,7 +45,7 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
 
 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
 
-flash bank cfi 0x10000000 0x400000 2 2 0
+flash bank cfi 0x10000000 0x400000 2 2 $_TARGETNAME
 
 # For more information about the configuration files, take a look at:
 # openocd.texi