projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target: restructure dap support
[fw/openocd]
/
tcl
/
target
/
nrf51.cfg
diff --git
a/tcl/target/nrf51.cfg
b/tcl/target/nrf51.cfg
index 280dd4ff365609d56cddc62a82d565bf817f1e8f..4f2402033b4896c050737a3f189b102f2a8fcd9c 100644
(file)
--- a/
tcl/target/nrf51.cfg
+++ b/
tcl/target/nrf51.cfg
@@
-31,9
+31,10
@@
if { [info exists CPUTAPID] } {
}
swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
}
swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
set _TARGETNAME $_CHIPNAME.cpu
set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -
chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -
dap $_CHIPNAME.dap
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0