X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Fkx.cfg;fp=tcl%2Ftarget%2Fkx.cfg;h=73ee62a79792b25e7c5f021b89f43902f5da7613;hp=51703e69d1c8549687ba9d3916e234b6b5e9c88d;hb=2231da8ec4e7d7ae9b652f3dd1a7104f5a110f3f;hpb=72740904568414bb4a9192fe89034bae3b1a9e45 diff --git a/tcl/target/kx.cfg b/tcl/target/kx.cfg index 51703e69d1..73ee62a797 100644 --- a/tcl/target/kx.cfg +++ b/tcl/target/kx.cfg @@ -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