X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Fpsoc4.cfg;h=eb51847ce3a4334ad9cc6c66dac12bc5b7b1068b;hp=5d6dcede33b7ed09a6119d04c3ff334bbbae4654;hb=bebdbe8b73b8d7cb2837687c0d38396fee0142fd;hpb=38030e011542a894237b517c065d22db97525954 diff --git a/tcl/target/psoc4.cfg b/tcl/target/psoc4.cfg index 5d6dcede33..eb51847ce3 100644 --- a/tcl/target/psoc4.cfg +++ b/tcl/target/psoc4.cfg @@ -26,9 +26,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 $_TARGETNAME +target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0