update 'flash bank' usage in scripts
[fw/openocd] / tcl / target / lpc2124.cfg
index 471286b88769a982c0b12370561bb5c25cb27868..9a27aece5d5673eac17d34dc158090ad626c01d3 100644 (file)
@@ -39,4 +39,5 @@ $_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-a
 
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash bank lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14745 calc_checksum
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14745 calc_checksum