src/flash/nor: flash driver for RSL10
[fw/openocd] / tcl / target / xmc4xxx.cfg
index bc007779977f3bd516720a8bd9ae3bcfcb655c8a..0e28494a8e52ad49537009faa75d238d9c1b84e9 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
 # Infineon XMC4100/XMC4200/XMC4400/XMC4500 family (ARM Cortex-M4 @ 80-120 MHz)
 #
@@ -35,9 +37,10 @@ if { [using_jtag] } {
 }
 
 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
 
 # Work-area is a space in RAM used for flash programming
 # By default use 16 kB
@@ -56,4 +59,4 @@ if { ![using_hla] } {
        cortex_m reset_config sysresetreq
 }
 
-adapter_khz 1000
+adapter speed 1000