]> git.sur5r.net Git - openocd/blobdiff - tcl/target/kx.cfg
target: restructure dap support
[openocd] / tcl / target / kx.cfg
index 51703e69d1c8549687ba9d3916e234b6b5e9c88d..73ee62a79792b25e7c5f021b89f43902f5da7613 100644 (file)
@@ -30,9 +30,10 @@ 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
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
+target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
 
 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0