update 'flash bank' usage in scripts
[fw/openocd] / tcl / board / zy1000.cfg
index 54bb7bb7453ccef03c86d087d5d2cd412ec253ea..3f526d068b6d5f370afbb021615b8e3231f7b807 100644 (file)
@@ -38,7 +38,8 @@ target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAM
 arm7_9 fast_memory_access enable
 arm7_9 dcc_downloads enable
 
-flash bank ecosflash 0x01000000 0x200000 2 2 $_TARGETNAME ecos/at91eb40a.elf
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME ecosflash 0x01000000 0x200000 2 2 $_TARGETNAME ecos/at91eb40a.elf
 $_TARGETNAME configure -event reset-init {
        # Set up chip selects & timings
        mww 0xFFE00000 0x0100273D