summaryrefslogtreecommitdiff
path: root/tcl/target/telo.cfg
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-18 02:15:52 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-19 13:39:41 -0800
commit2dfa5e9c844a5a3f8aaca146c874f13570b8f667 (patch)
tree30178e8d65d17c173619a3a8b9921b8d4f911210 /tcl/target/telo.cfg
parentfd654c8a3e3dbd5ab97eb6b3834ee462dd509a66 (diff)
downloadopenocd_libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.gz
openocd_libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.bz2
openocd_libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.xz
openocd_libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.zip
update 'flash bank' usage in scripts
Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the first argument to 'flash bank'.
Diffstat (limited to 'tcl/target/telo.cfg')
-rw-r--r--tcl/target/telo.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/target/telo.cfg b/tcl/target/telo.cfg
index c4e5d67f..0cbdb816 100644
--- a/tcl/target/telo.cfg
+++ b/tcl/target/telo.cfg
@@ -54,7 +54,8 @@ proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }
# boots from NOR on CS0: 8 MBytes CFI flash, 16-bit bus
# it's really 16MB but the upper 8mb is controller via gpio
# openocd does not support 'complex reads/writes' to NOR
-flash bank cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
# writing data to memory does not work without this
memwrite burst disable \ No newline at end of file