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
|
|
|
|
|
2018-07-17 13:46:55 +02:00
|
|
|
# setup the flash tool used
|
|
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
|
|
# in case J-Link is attached to SWD pins, use a plain CPU memory model
|
2020-03-03 11:56:38 +01:00
|
|
|
JLINK_DEVICE = atsamd21
|
2020-11-19 18:38:41 +01:00
|
|
|
else ifeq ($(PROGRAMMER),bossa)
|
|
|
|
# ROM_OFFSET skips the space taken by the pre-flashed Arduino bootloader.
|
2018-07-17 13:46:55 +02:00
|
|
|
ROM_OFFSET ?= 0x2000
|
|
|
|
endif
|
|
|
|
|
|
|
|
# setup the boards dependencies
|
2019-12-20 18:36:34 +01:00
|
|
|
include $(RIOTBOARD)/sensebox_samd21/Makefile.dep
|