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

-- gerrit

commit 8b4f753d64557b44614c13c646e765e610dfda40
Author: Antonio Borneo <[email protected]>
Date:   Sun Feb 1 14:07:01 2026 +0100

    target: stm32l0x: drop swj on swd only target
    
    The STM32L0xx devices support only SWD.
    
    Drop swj support.
    Add swd transport.
    
    Change-Id: I5f8fb4344b33f8bdefd67fd86326f4dccb674d92
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/tcl/target/stm32l0.cfg b/tcl/target/stm32l0.cfg
index b4bdb18a4d..1324902944 100644
--- a/tcl/target/stm32l0.cfg
+++ b/tcl/target/stm32l0.cfg
@@ -1,11 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 #
-# M0+ devices only have SW-DP, but swj-dp code works, just don't
-# set any jtag related features
+# stm32l0x devices support SWD transports only.
 #
+transport select swd
 
-source [find target/swj-dp.tcl]
 source [find mem_helper.tcl]
 
 if { [info exists CHIPNAME] } {
@@ -38,7 +37,7 @@ if { [info exists CPUTAPID] } {
     set _CPUTAPID 0x0bc11477
 }
 
-swj_newdap $_CHIPNAME cpu -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