This is an automated email from Gerrit.

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

-- gerrit

commit b01bd00e37a9f365185e13f7174e038eebbc1b87
Author: Antonio Borneo <[email protected]>
Date:   Sun Feb 1 13:32:20 2026 +0100

    target: stm32c0x: drop swj on swd only target
    
    The datasheets for all STM32C0xx devices report that only SWD is
    supported. No TDI/TDO pin is present.
    
    Drop swj support.
    Add swd transport.
    
    Change-Id: If6e630858aa64fbb3938a520604748f3f0ff7356
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/tcl/target/stm32c0x.cfg b/tcl/target/stm32c0x.cfg
index d015120319..35c0c5dc46 100644
--- a/tcl/target/stm32c0x.cfg
+++ b/tcl/target/stm32c0x.cfg
@@ -4,8 +4,8 @@
 #
 # stm32c0 devices support SWD transports only.
 #
+transport select swd
 
-source [find target/swj-dp.tcl]
 source [find mem_helper.tcl]
 
 if { [info exists CHIPNAME] } {
@@ -32,7 +32,7 @@ if { [info exists CPUTAPID] } {
    set _CPUTAPID 0x0bc11477
 }
 
-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