]> git.sur5r.net Git - openocd/blobdiff - tcl/target/1986ве1т.cfg
target: restructure dap support
[openocd] / tcl / target / 1986ве1т.cfg
index 7b0c35f08f38d558ff185f0ec7f43a127e169b07..ecb3f8ae12c70f4185729088b48eefb6f3e56ef9 100644 (file)
@@ -34,9 +34,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 -endian $_ENDIAN -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_CHIPNAME.dap
 
 # use AHB-Lite SRAM for work area
 $_TARGETNAME configure -work-area-phys 0x20100000 -work-area-size $_WORKAREASIZE -work-area-backup 0