2018-08-23 17:20:22 +02:00
|
|
|
# This board uses a DAP-Link programmer
|
|
|
|
# Flashing support is provided through pyocd (default) and openocd.
|
|
|
|
# For openocd, a version built against the development branch and containing
|
|
|
|
# the support for nrf52 cpu is required.
|
|
|
|
PROGRAMMER ?= pyocd
|
|
|
|
ifeq (pyocd,$(PROGRAMMER))
|
|
|
|
# The board is not recognized automatically by pyocd, so the CPU target
|
|
|
|
# option is passed explicitly
|
2020-03-08 15:03:49 +01:00
|
|
|
FLASH_TARGET_TYPE ?= -t nrf52840
|
2018-08-23 17:20:22 +02:00
|
|
|
include $(RIOTMAKE)/tools/pyocd.inc.mk
|
2019-03-05 11:48:11 +01:00
|
|
|
else ifeq (openocd,$(PROGRAMMER))
|
|
|
|
DEBUG_ADAPTER = dap
|
2018-08-23 17:20:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|