From f3999be3d42cdf3ee210dd20f1646c6346097b91 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 20 Apr 2021 15:24:58 +0200 Subject: [PATCH] tests/dbgpin: user port 1 for frdm-k64f --- tests/dbgpin/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/dbgpin/Makefile b/tests/dbgpin/Makefile index 9a02af2ac2..385c3d1837 100644 --- a/tests/dbgpin/Makefile +++ b/tests/dbgpin/Makefile @@ -3,7 +3,20 @@ include ../Makefile.tests_common USEMODULE += dbgpin USEMODULE += xtimer -DBGPIN_PINS ?= GPIO_PIN(0,0) +# Default port used is PORT 1 +# - frdm-64f port A0-4 are connected to the JTAG, setting GPIO(0,0) will +# cause flashing to fail +BOARDS_DEBUG_PORT_1 = \ + frdm-k64f \ + # + +ifneq (,$(filter $(BOARD),$(BOARDS_DEBUG_PORT_1))) + TEST_PORT ?= 1 +else + TEST_PORT ?= 0 +endif + +DBGPIN_PINS ?= GPIO_PIN($(TEST_PORT),0) CFLAGS += -DDBGPIN_PINS="$(DBGPIN_PINS)" include $(RIOTBASE)/Makefile.include