1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/samd21-arduino-bootloader/Makefile.include
Benjamin Valentin 1d638bf017 boards/samd21-arduino-bootloader: increase preflash delay
The USB bootloader can take a while to be ready / Linux takes a while
to set up the interface.
1s is right at the edge, leading to races and often failed flashing.

Bump the delay to 2s for a wider safety margin, with this flashing is
a lot more reliable.
2021-02-09 16:13:23 +01:00

17 lines
426 B
Makefile

# setup the flash tool used
# Bossa is the default programmer
PROGRAMMER ?= bossa
ifeq ($(PROGRAMMER),bossa)
# by default, we use BOSSA to flash this board and take into account the
# preinstalled Arduino bootloader. ROM_OFFSET skips the space taken by
# such bootloader.
ifeq ($(CPU),samd5x)
ROM_OFFSET ?= 0x4000
else
ROM_OFFSET ?= 0x2000
endif
BOSSA_ARDUINO_PREFLASH = yes
PREFLASH_DELAY ?= 2
endif