update 'flash bank' usage in scripts
[fw/openocd] / tcl / board / hammer.cfg
index ed83803fb5c6692f106833e239eef9f425ee87a4..d366a45ecd50d92ed4d3943efff35606d22ac96e 100644 (file)
@@ -33,4 +33,5 @@ $_TARGETNAME configure -event reset-init {
 
 #flash configuration
 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
-flash bank cfi 0x00000000 0x1000000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x00000000 0x1000000 2 2 0