1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/nrf52840-mdk/Makefile.include
Alexandre Abadie e830462bf2
boards/nrf52840-mdk: fix device type used with pyocd
This allows pyOCD to use the right memory values, especially flash size and pyOCD 0.14.1 has support for nrf52840.
2019-03-24 16:48:29 +01:00

18 lines
609 B
Makefile

export CPU_MODEL = nrf52840xxaa
# 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
export FLASH_TARGET_TYPE ?= -t nrf52840
include $(RIOTMAKE)/tools/pyocd.inc.mk
else ifeq (openocd,$(PROGRAMMER))
DEBUG_ADAPTER = dap
endif
include $(RIOTBOARD)/common/nrf52/Makefile.include