tcl/board: add ESP32 config for ESP USB Bridge board
[fw/openocd] / tcl / target / fm4.cfg
index e5d0f8d60e2336544ebd885594323a2e1e3a3356..4318f2e569bbd65512848ececb46dd42265ee4bb 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
 # Spansion FM4 (ARM Cortex-M4)
 #
@@ -19,11 +21,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