1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/stk3700: Allow selecting OpenOCD

OpenOCD works well with those devices; the OpenOCD config is provided at
the default location and only needs to refer to the setup that OpenOCD
ships.
This commit is contained in:
chrysn 2018-11-26 18:51:26 +01:00
parent da78d03e95
commit 4387739494
2 changed files with 10 additions and 3 deletions

View File

@ -5,9 +5,15 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
# setup JLink for flashing
export JLINK_DEVICE := $(CPU_MODEL)
include $(RIOTMAKE)/tools/jlink.inc.mk
PROGRAMMER ?= jlink
ifeq ($(PROGRAMMER),jlink)
# setup JLink for flashing
export JLINK_DEVICE := $(CPU_MODEL)
include $(RIOTMAKE)/tools/jlink.inc.mk
else ifeq ($(PROGRAMMER),openocd)
include $(RIOTMAKE)/tools/openocd.inc.mk
endif
# include board common
include $(RIOTBOARD)/common/silabs/Makefile.include

1
boards/stk3700/dist/openocd.cfg vendored Normal file
View File

@ -0,0 +1 @@
source [find board/efm32.cfg]