From 86bdd882821d0f53ea14c6f1637bdb340dfc4117 Mon Sep 17 00:00:00 2001 From: Tomas Vanek Date: Tue, 3 Feb 2026 21:57:00 +0100 Subject: [PATCH] tcl/target/lpc8nxx: 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: Id66a808475f061307fc6a0b3e0d2a9840b543e7f Signed-off-by: Tomas Vanek Reviewed-on: https://review.openocd.org/c/openocd/+/9437 Reviewed-by: Antonio Borneo Tested-by: jenkins --- tcl/target/lpc8nxx.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcl/target/lpc8nxx.cfg b/tcl/target/lpc8nxx.cfg index 859e99b6a..6f1f88df4 100644 --- a/tcl/target/lpc8nxx.cfg +++ b/tcl/target/lpc8nxx.cfg @@ -5,8 +5,8 @@ # Based on NXP proposal https://community.nxp.com/message/1011149 # Many thanks to Dries Moors from NXP support. # SWD only transport +transport select swd -source [find target/swj-dp.tcl] source [find mem_helper.tcl] if { [info exists CHIPNAME] } { @@ -15,7 +15,7 @@ if { [info exists CHIPNAME] } { set _CHIPNAME lpc8nxx } -swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id 0 +swd newdap $_CHIPNAME cpu -expected-id 0 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu