tcl/target/eos_s3: fix variable's expansion typo 79/6079/3 master
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 3 Mar 2021 20:57:33 +0000 (21:57 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 4 Mar 2021 14:59:32 +0000 (14:59 +0000)
TCL expands the variables only if preceded by a dollar sign.

Add the missing dollar before the variable's name '_CPUTAPID'.

Change-Id: Icc5d0dddf24f75d12ee63fee69e1b265e842ca43
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Wes Cilldhaire <wes@sol1.com.au>
Fixes: c3166b43e415 ("tcl/target: Add QuickLogic EOS S3 MCU configuration")
Reviewed-on: http://openocd.zylin.com/6079
Tested-by: jenkins
Reviewed-by: TM <tommy_murphy@hotmail.com>
tcl/target/eos_s3.cfg

index f6016fb..150ef4e 100644 (file)
@@ -26,7 +26,7 @@ if { [info exists CPUTAPID] } {
    }
 }
 
-swj_newdap $_CHIPNAME cpu -irlen 4 -irmask 0xf -expected-id _CPUTAPID
+swj_newdap $_CHIPNAME cpu -irlen 4 -irmask 0xf -expected-id $_CPUTAPID
 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
 set _TARGETNAME $_CHIPNAME.cpu