Skip to content

Commit

Permalink
tools/openocd: define SWD_EN signal for tigard
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Mar 26, 2024
1 parent b424711 commit 3c78c3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions makefiles/tools/openocd-adapters/ftdi.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3c78c3d

Please sign in to comment.