diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-03-26 15:17:46 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-03-26 08:42:58 +0100 |
commit | 27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1 (patch) | |
tree | 8c16c74c71a967d5694fd4e1b0033b16f11e8671 /tcl/board/dm6446evm.cfg | |
parent | ed81249129d4b43159843712efa408660cf4c03d (diff) | |
download | openocd_libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.tar.gz openocd_libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.tar.bz2 openocd_libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.tar.xz openocd_libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.zip |
TCL scripts: update to current "flash bank" syntax
While "flash bank" syntax has been changed long ago,
several tcl script are still not fully update.
Fix following cases related with "cfi" driver:
- syntax error: the mandatory <name> parameter is missing
- warning: the <target> parameter is a number, instead of
the target name
- the comment line above the command does not report
actual syntax
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl/board/dm6446evm.cfg')
-rw-r--r-- | tcl/board/dm6446evm.cfg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/board/dm6446evm.cfg b/tcl/board/dm6446evm.cfg index 39607fe3..dcd1c4ef 100644 --- a/tcl/board/dm6446evm.cfg +++ b/tcl/board/dm6446evm.cfg @@ -31,7 +31,8 @@ if { [info exists J4_OPTION] } { if { $CS2_MODE == "NOR" } { # 16 Mbytes address space; 16 bit bus width # (older boards used 32MB parts, with upper 16 MB unusable) - flash bank cfi 0x02000000 0x01000000 2 2 $_TARGETNAME + set _FLASHNAME $_CHIPNAME.flash + flash bank $_FLASHNAME cfi 0x02000000 0x01000000 2 2 $_TARGETNAME proc flashprobe {} { flash probe 0 } } elseif { $CS2_MODE == "NAND" } { # 64 Mbyte small page; 8 bit bus width |