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/+/9438

-- gerrit

commit f20153228c571a38b23f2eb09b1cc8124c5da0f7
Author: Tomas Vanek <[email protected]>
Date:   Tue Feb 3 22:12:05 2026 +0100

    tcl/target/numicro*: drop swj on swd only target
    
    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: I2119e0c0895ca97895ade92a1b1becef6bd6cfdb
    Signed-off-by: Tomas Vanek <[email protected]>

diff --git a/tcl/target/numicro.cfg b/tcl/target/numicro.cfg
index 29077f39f8..e492fa1601 100644
--- a/tcl/target/numicro.cfg
+++ b/tcl/target/numicro.cfg
@@ -2,8 +2,7 @@
 
 # script for Nuvoton MuMicro Cortex-M0 Series
 
-# Adapt based on what transport is active.
-source [find target/swj-dp.tcl]
+transport select swd
 
 # Set Chipname
 if { [info exists CHIPNAME] } {
@@ -29,7 +28,7 @@ if { [info exists WORKAREASIZE] } {
 
 
 # Debug Adapter Target Settings
-swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUDAPID
+swd newdap $_CHIPNAME cpu -expected-id $_CPUDAPID
 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
diff --git a/tcl/target/numicro_m4.cfg b/tcl/target/numicro_m4.cfg
index 1302515d34..ac242c417d 100644
--- a/tcl/target/numicro_m4.cfg
+++ b/tcl/target/numicro_m4.cfg
@@ -2,7 +2,7 @@
 
 # script for Nuvoton MuMicro Cortex-M4 Series
 
-source [find target/swj-dp.tcl]
+transport select swd
 
 # Set Chipname
 if { [info exists CHIPNAME] } {
@@ -28,7 +28,7 @@ if { [info exists WORKAREASIZE] } {
 
 
 # Debug Adapter Target Settings
-swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUDAPID
+swd newdap $_CHIPNAME cpu -expected-id $_CPUDAPID
 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap

-- 

Reply via email to