target.cfg: use $_TARGETNAME for flash
[fw/openocd] / tcl / target / lpc2294.cfg
index 399b11dfb7bdfa9fbfb2f7c99d8ba34311ab1189..08fbf58190fa383619eded634a71b790dcea7cf3 100644 (file)
@@ -32,7 +32,7 @@ $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-s
 
 #flash configuration
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
-flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum
+flash bank lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14765 calc_checksum
 
 # For more information about the configuration files, take a look at:
 # openocd.texi