boards/microbit: use openocd as default programmer
This commit is contained in:
parent
fcd7f2233a
commit
cd998f6a2d
@ -5,21 +5,12 @@ export CPU_MODEL = nrf51x22xxab
|
|||||||
PORT_LINUX ?= /dev/ttyACM0
|
PORT_LINUX ?= /dev/ttyACM0
|
||||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||||
|
|
||||||
# this board supports flashing through plain fscopy, using JLink or using
|
# for this board we support flashing via openocd or pyocd
|
||||||
# openocd. Default programmer is fscopy
|
PROGRAMMER ?= openocd
|
||||||
PROGRAMMER ?= fscopy
|
|
||||||
|
|
||||||
ifeq (fscopy,$(PROGRAMMER))
|
ifeq (openocd,$(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
|
|
||||||
DEBUG_ADAPTER = dap
|
DEBUG_ADAPTER = dap
|
||||||
else ifeq (pyocd, $(PROGRAMMER))
|
else ifeq (pyocd,$(PROGRAMMER))
|
||||||
include $(RIOTMAKE)/tools/pyocd.inc.mk
|
include $(RIOTMAKE)/tools/pyocd.inc.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user