From 3c78c3d8ace3384d06f24c9b9bd4f21c99e32444 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 26 Mar 2024 18:42:43 +0100 Subject: [PATCH] tools/openocd: define SWD_EN signal for tigard --- makefiles/tools/openocd-adapters/ftdi.inc.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefiles/tools/openocd-adapters/ftdi.inc.mk b/makefiles/tools/openocd-adapters/ftdi.inc.mk index 73432e3166..db8982f305 100644 --- a/makefiles/tools/openocd-adapters/ftdi.inc.mk +++ b/makefiles/tools/openocd-adapters/ftdi.inc.mk @@ -11,3 +11,10 @@ OPENOCD_TRANSPORT ?= swd ifneq (,$(DEBUG_ADAPTER_ID)) OPENOCD_ADAPTER_INIT += -c 'ftdi_serial $(DEBUG_ADAPTER_ID)' endif + +ifeq (swd, $(OPENOCD_TRANSPORT)) + ifeq (tigard, $(OPENOCD_FTDI_ADAPTER)) + # Add dummy SWD_EN signal + OPENOCD_ADAPTER_INIT += -c 'ftdi layout_signal SWD_EN -data 0' + endif +endif