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

boards/microbit: use openocd as default programmer

This commit is contained in:
Hauke Petersen 2019-06-04 15:27:07 +02:00
parent fcd7f2233a
commit cd998f6a2d

View File

@ -5,21 +5,12 @@ export CPU_MODEL = nrf51x22xxab
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# this board supports flashing through plain fscopy, using JLink or using
# openocd. Default programmer is fscopy
PROGRAMMER ?= fscopy
# for this board we support flashing via openocd or pyocd
PROGRAMMER ?= openocd
ifeq (fscopy,$(PROGRAMMER))
FFLAGS = $(HEXFILE)
DEBUGGER_FLAGS =
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
DEBUGGER =
DEBUGSERVER =
else ifeq (openocd,$(PROGRAMMER))
# this board uses a daplink adapter by default
ifeq (openocd,$(PROGRAMMER))
DEBUG_ADAPTER = dap
else ifeq (pyocd, $(PROGRAMMER))
else ifeq (pyocd,$(PROGRAMMER))
include $(RIOTMAKE)/tools/pyocd.inc.mk
endif