]> git.sur5r.net Git - openocd/blobdiff - tcl/target/at91sam3nXX.cfg
target: restructure dap support
[openocd] / tcl / target / at91sam3nXX.cfg
index 19bd33a9e8f801a5e76e7a0089f65c024f95f88d..3450c2626ee1f0c97f711d07572540a4a0bec810 100644 (file)
@@ -18,9 +18,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 little -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -endian little -dap $_CHIPNAME.dap
 
 set _FLASHNAME $_CHIPNAME.flash
 flash bank flash0 at91sam3 0x00400000 0 0 0 $_TARGETNAME