2019-09-30 17:16:00 +02:00
|
|
|
# setup the flash tool used
|
|
|
|
# Bossa is the default programmer
|
|
|
|
PROGRAMMER ?= bossa
|
|
|
|
|
2021-02-11 14:01:04 +01:00
|
|
|
# Add bossa as supported programmers. Boards that support more programmers
|
|
|
|
# should declare them in their own Makefile.include
|
|
|
|
PROGRAMMERS_SUPPORTED += bossa
|
|
|
|
|
2019-09-30 17:16:00 +02:00
|
|
|
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.
|
2021-01-21 12:08:46 +01:00
|
|
|
ifeq ($(CPU),samd5x)
|
|
|
|
ROM_OFFSET ?= 0x4000
|
|
|
|
else
|
|
|
|
ROM_OFFSET ?= 0x2000
|
|
|
|
endif
|
2019-09-30 17:16:00 +02:00
|
|
|
BOSSA_ARDUINO_PREFLASH = yes
|
2021-02-09 16:13:23 +01:00
|
|
|
PREFLASH_DELAY ?= 2
|
2019-09-30 17:16:00 +02:00
|
|
|
endif
|