1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/arduino-nano-33-ble/Makefile.include

33 lines
953 B
Makefile

# Bossa is the default programmer
PROGRAMMER ?= bossa
ifeq ($(PROGRAMMER),bossa)
# The preinstalled Arduino bootloader must also be taken into account so
# ROM_OFFSET skips the space taken by such bootloader.
ROM_OFFSET ?= 0x10000
# This board requires a BOSSA version from arduino's fork and adapted to
# nrf52.
BOSSA_VERSION = nrf52
BOSSA_ARDUINO_PREFLASH = yes
PREFLASH_DELAY = 1
ifneq (,$(filter reset flash flash-only, $(MAKECMDGOALS)))
# Add 2 seconds delay before opening terminal: this is required when opening
# the terminal right after flashing. In this case, the stdio over USB needs
# some time after reset before being ready.
TERM_DELAY = 2
TERMDEPS += term-delay
endif
include $(RIOTMAKE)/tools/bossa.inc.mk
endif
term-delay:
sleep $(TERM_DELAY)
TESTRUNNER_CONNECT_DELAY ?= 2
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
include $(RIOTBOARD)/common/nrf52/Makefile.include