summaryrefslogtreecommitdiff
path: root/tcl/board/crossbow_tech_imote2.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/board/crossbow_tech_imote2.cfg')
-rw-r--r--tcl/board/crossbow_tech_imote2.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/board/crossbow_tech_imote2.cfg b/tcl/board/crossbow_tech_imote2.cfg
index a7d12156..88d4aa72 100644
--- a/tcl/board/crossbow_tech_imote2.cfg
+++ b/tcl/board/crossbow_tech_imote2.cfg
@@ -9,4 +9,5 @@ jtag_nsrst_delay 800
reset_config trst_and_srst separate
# works for P30 flash
-flash bank cfi 0x00000000 0x2000000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x00000000 0x2000000 2 2 $_TARGETNAME