This is an automated email from Gerrit.

"Tomas Vanek <[email protected]>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/9436

-- gerrit

commit 6276cff05b95fc77e74e50aa4cae13430da85adf
Author: Tomas Vanek <[email protected]>
Date:   Tue Feb 3 21:48:01 2026 +0100

    tcl/target/psoc4: drop swj on swd only targets
    
    Historically swj_newdap was necessary to handle HLA properly.
    Since commit 60f104f45013 ("hla_transport: split command
    registration per transport") there is no point in using
    swj_newdap on SWD only devices.
    
    There are no relevant board files.
    
    Change-Id: I7ff7b2dee316c10a24e2ab38f8c03f504295d868
    Signed-off-by: Tomas Vanek <[email protected]>

diff --git a/tcl/target/psoc4.cfg b/tcl/target/psoc4.cfg
index baa2c83f41..f9673638e8 100644
--- a/tcl/target/psoc4.cfg
+++ b/tcl/target/psoc4.cfg
@@ -5,7 +5,7 @@
 #
 # PSoC 4 devices support SWD transports only.
 #
-source [find target/swj-dp.tcl]
+transport select swd
 
 if { [info exists CHIPNAME] } {
    set _CHIPNAME $CHIPNAME
@@ -27,7 +27,7 @@ if { [info exists CPUTAPID] } {
    set _CPUTAPID 0x0bb11477
 }
 
-swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 
$_CPUTAPID
+swd newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
 set _TARGETNAME $_CHIPNAME.cpu

-- 

Reply via email to