jtag/cmsis_dap: switch to command 'adapter serial'
[fw/openocd] / tcl / target / fm4.cfg
index e5d0f8d60e2336544ebd885594323a2e1e3a3356..bfe7115ca7192dc90ce7b04131cda4c142fd38b5 100644 (file)
@@ -19,11 +19,12 @@ if { [info exists CPUTAPID] } {
 }
 
 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 -endian little -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -endian little -dap $_CHIPNAME.dap
 
-adapter_khz 500
+adapter speed 500
 
 if {![using_hla]} {
        cortex_m reset_config sysresetreq