diff --git a/boards/common/iotlab/Makefile.include b/boards/common/iotlab/Makefile.include index 7dc738d8fd..9af1e88235 100644 --- a/boards/common/iotlab/Makefile.include +++ b/boards/common/iotlab/Makefile.include @@ -9,6 +9,8 @@ include $(RIOTMAKE)/tools/serial.inc.mk # Using connect_assert_srst removes errors on flash from invalid state export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 +export OPENOCD_CONFIG ?= $(RIOTBOARD)/common/iotlab/dist/openocd.cfg + # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk diff --git a/boards/iotlab-a8-m3/dist/openocd.cfg b/boards/common/iotlab/dist/openocd.cfg similarity index 100% rename from boards/iotlab-a8-m3/dist/openocd.cfg rename to boards/common/iotlab/dist/openocd.cfg diff --git a/boards/iotlab-m3/dist/openocd.cfg b/boards/iotlab-m3/dist/openocd.cfg deleted file mode 100644 index 13970b67ca..0000000000 --- a/boards/iotlab-m3/dist/openocd.cfg +++ /dev/null @@ -1,7 +0,0 @@ -source [find interface/ftdi/iotlab-usb.cfg] -source [find target/stm32f1x.cfg] - -# use combined on interfaces or targets that can't set TRST/SRST separately -reset_config trst_and_srst - -$_TARGETNAME configure -rtos auto