From 078a6b1f9f9d6a0e6fe2f377bb3d3ba96133eaaf Mon Sep 17 00:00:00 2001 From: Mikhail Iakhiaev Date: Wed, 28 Jan 2026 14:04:56 -0800 Subject: [PATCH] tcl/target/ti/mspm0.cfg: drop swj on swd only target The MSPM0 devices support only SWD. Drop swj support, add swd support. This also gets rid of the following warnings: Warn : DEPRECATED: auto-selecting transport "swd". Use 'transport ... Warn : Transport "swd" was already selected Tested by programming/verifying firmware on LP-MSPM0G3519 dev board. Change-Id: Ieafd9c4691343124b2dfb2daa1c0d3a96b13e485 Signed-off-by: Mikhail Iakhiaev Reviewed-on: https://review.openocd.org/c/openocd/+/9413 Tested-by: jenkins Reviewed-by: Antonio Borneo Reviewed-by: Tomas Vanek --- tcl/target/ti/mspm0.cfg | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tcl/target/ti/mspm0.cfg b/tcl/target/ti/mspm0.cfg index 4e9b89c1f..89c7847e5 100644 --- a/tcl/target/ti/mspm0.cfg +++ b/tcl/target/ti/mspm0.cfg @@ -14,26 +14,17 @@ if { [info exists CHIPNAME] } { set _CHIPNAME mspm0x } -if { [info exists CPUTAPID] } { - set _DAP_TAPID $CPUTAPID -} else { - set _DAP_TAPID 0x4ba00477 -} - +# Note, some targets use "CPUTAPID" variable for this purpose. if { [info exists DAP_SWD_ID] } { set _DAP_SWD_ID $DAP_SWD_ID } else { set _DAP_SWD_ID 0x2ba01477 } -source [find target/swj-dp.tcl] - -# MSPM0 only supports swd, so set it here and save a line for custom boards +# MSPM0 only supports swd transport select swd -set _DAP_ID $_DAP_SWD_ID - -swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_DAP_ID +swd newdap $_CHIPNAME cpu -expected-id $_DAP_SWD_ID dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu