From a272a879b736fb4ff1183e46d8e80ccd56601172 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 21 Aug 2020 11:31:04 +0200 Subject: [PATCH] boards/saml1x: add openocd.cfg Previously trying `make debug` on these boards would result in Error: Unable to locate OpenOCD configuration file (/home/benpicco/dev/RIOT/boards/saml10-xpro/dist/openocd.cfg) Add a common `openocd.cfg` to fix this. --- boards/common/saml1x/Makefile.include | 2 ++ boards/common/saml1x/dist/openocd.cfg | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 boards/common/saml1x/dist/openocd.cfg diff --git a/boards/common/saml1x/Makefile.include b/boards/common/saml1x/Makefile.include index b4042c2ecc..afa78f774f 100644 --- a/boards/common/saml1x/Makefile.include +++ b/boards/common/saml1x/Makefile.include @@ -1,3 +1,5 @@ +OPENOCD_CONFIG ?= $(RIOTBOARD)/common/saml1x/dist/openocd.cfg + include $(RIOTMAKE)/boards/sam0.inc.mk # add the common header files to the include path diff --git a/boards/common/saml1x/dist/openocd.cfg b/boards/common/saml1x/dist/openocd.cfg new file mode 100644 index 0000000000..4a4b9d5cd1 --- /dev/null +++ b/boards/common/saml1x/dist/openocd.cfg @@ -0,0 +1,2 @@ +source [find target/atsaml1x.cfg] +$_TARGETNAME configure -rtos auto