2021-02-08 21:29:51 +01:00
|
|
|
# for this board, flash with OpenOCD by default. PyOCD is also supported.
|
2021-02-07 17:13:34 +01:00
|
|
|
PROGRAMMER ?= openocd
|
2021-02-11 14:59:43 +01:00
|
|
|
PROGRAMMERS_SUPPORTED += pyocd
|
|
|
|
|
2023-02-24 12:44:45 +01:00
|
|
|
# The model text used has double quotes around the name. That's an odd enough
|
|
|
|
# choice to warrant making them optional in the detection, in case later
|
|
|
|
# programmer firmware revisions "fix" that.
|
|
|
|
TTY_BOARD_FILTER := --model ".?BBC micro:bit CMSIS-DAP.?"
|
|
|
|
|
2023-01-10 09:37:29 +01:00
|
|
|
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
|
|
|
|
# the debug adapter
|
|
|
|
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
|
|
|
|
|
2021-02-18 17:29:53 +01:00
|
|
|
# The board is not recognized automatically by pyocd, so the CPU target
|
|
|
|
# option is passed explicitly
|
|
|
|
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
|
|
|
OPENOCD_DEBUG_ADAPTER = dap
|
2021-02-07 17:13:34 +01:00
|
|
|
|
2021-02-16 11:38:26 +01:00
|
|
|
ifneq (,$(filter microbit,$(USEMODULE)))
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/microbit/include
|
|
|
|
endif
|
|
|
|
|
2021-02-07 17:13:34 +01:00
|
|
|
# include nrf52 boards common configuration
|
|
|
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|