2020-11-19 18:38:41 +01:00
|
|
|
# by default, we use BOSSA to flash this board to take into account the
|
|
|
|
# pre-flashed Arduino bootloader
|
|
|
|
PROGRAMMER ?= bossa
|
2021-02-24 12:48:39 +01:00
|
|
|
PROGRAMMERS_SUPPORTED += bossa
|
2020-11-19 18:38:41 +01:00
|
|
|
|
2021-02-24 16:59:28 +01:00
|
|
|
# in case J-Link is attached to SWD pins, use a plain CPU memory model
|
|
|
|
JLINK_DEVICE = atsamd21
|
|
|
|
|
|
|
|
ifeq ($(PROGRAMMER),bossa)
|
2020-11-19 18:38:41 +01:00
|
|
|
# ROM_OFFSET skips the space taken by the pre-flashed Arduino bootloader.
|
2018-07-17 13:46:55 +02:00
|
|
|
ROM_OFFSET ?= 0x2000
|
|
|
|
endif
|
2021-02-24 16:59:28 +01:00
|
|
|
|
|
|
|
# Include all definitions for flashing with bossa over USB
|
|
|
|
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include
|
|
|
|
|
|
|
|
# Include handling of serial and non-bossa programmers (if selected by user)
|
|
|
|
include $(RIOTMAKE)/boards/sam0.inc.mk
|