]> git.sur5r.net Git - openocd/blobdiff - tcl/target/lpc4350.cfg
target: restructure dap support
[openocd] / tcl / target / lpc4350.cfg
index 4e23ffb0dd8111a53467f12789fbab7eceae9023..2b728840ebe31417eff35d306efad04a42dfb5ed 100644 (file)
@@ -43,12 +43,14 @@ if { [info exists M0_JTAG_TAPID] } {
 
 swj_newdap $_CHIPNAME m4 -irlen 4 -ircapture 0x1 -irmask 0xf \
                                -expected-id $_M4_TAPID
-target create $_CHIPNAME.m4 cortex_m -chain-position $_CHIPNAME.m4
+dap create $_CHIPNAME.m4.dap -chain-position $_CHIPNAME.m4
+target create $_CHIPNAME.m4 cortex_m -dap $_CHIPNAME.m4.dap
 
 if { [using_jtag] } {
        swj_newdap $_CHIPNAME m0 -irlen 4 -ircapture 0x1 -irmask 0xf \
                                -expected-id $_M0_JTAG_TAPID
-       target create $_CHIPNAME.m0 cortex_m -chain-position $_CHIPNAME.m0
+       dap create $_CHIPNAME.m0.dap -chain-position $_CHIPNAME.m0
+       target create $_CHIPNAME.m0 cortex_m -dap $_CHIPNAME.m0.dap
 }
 
 # LPC4350 has 96+32 KB SRAM