tcl/stm32wlx.cfg: comply with new jimtcl expr syntax
[fw/openocd] / tcl / target / efm32.cfg
index e0c553fd28c28eb76c9d835d5930d349e069a1d9..c789efc723a0c6a056aad8bba76e2207500e531e 100644 (file)
@@ -32,11 +32,12 @@ if { [info exists CPUTAPID] } {
 }
 
 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
-adapter_khz 1000
+adapter speed 1000
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
 
 $_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE -work-area-backup 0