]> git.sur5r.net Git - openocd/blobdiff - tcl/target/lpc1xxx.cfg
target: restructure dap support
[openocd] / tcl / target / lpc1xxx.cfg
index 9c10e9f933a3bc1633e22e611d7dfa08a86131ca..701adf2782d40d4c9fe505bcb1af75e04a368107 100644 (file)
@@ -75,9 +75,10 @@ if { [info exists WORKAREASIZE] } {
 }
 
 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
 
 # The LPC11xx devices have 2/4/8kB of SRAM in the ARMv7-M "Code" area (at 0x10000000)
 # The LPC12xx devices have 4/8kB of SRAM in the ARMv7-M "Code" area (at 0x10000000)