target: stm32f0x: drop swj on swd only target

The datasheets for all STM32F0xx devices report that only SWD is
supported. No TDI/TDO pin is present.

Drop swj support.
Add swd transport.
Remove swd transport from the associated board files.

Change-Id: I65a08b6a441d794aa209cff8583a971d3546f49e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9424
Reviewed-by: Ahmed Haoues <ahmed.haoues@st.com>
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Antonio Borneo
2026-02-01 13:48:39 +01:00
parent b164b65b3b
commit a02550bafa
4 changed files with 3 additions and 8 deletions

View File

@@ -10,8 +10,6 @@
source [find interface/stlink.cfg] source [find interface/stlink.cfg]
transport select swd
source [find target/stm32f0x.cfg] source [find target/stm32f0x.cfg]
reset_config srst_only reset_config srst_only

View File

@@ -8,8 +8,6 @@
source [find interface/stlink.cfg] source [find interface/stlink.cfg]
transport select swd
# increase working area to 8KB # increase working area to 8KB
set WORKAREASIZE 0x2000 set WORKAREASIZE 0x2000

View File

@@ -5,8 +5,6 @@
source [find interface/stlink.cfg] source [find interface/stlink.cfg]
transport select swd
set WORKAREASIZE 0x2000 set WORKAREASIZE 0x2000
source [find target/stm32f0x.cfg] source [find target/stm32f0x.cfg]

View File

@@ -5,7 +5,8 @@
# #
# stm32 devices support SWD transports only. # stm32 devices support SWD transports only.
# #
source [find target/swj-dp.tcl] transport select swd
source [find mem_helper.tcl] source [find mem_helper.tcl]
if { [info exists CHIPNAME] } { if { [info exists CHIPNAME] } {
@@ -41,7 +42,7 @@ if { [info exists CPUTAPID] } {
set _CPUTAPID 0x0bb11477 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 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
set _TARGETNAME $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu