2021-10-09 23:02:18 +09:00
|
|
|
CFLAGS += -D__SAMD21G18A__ -DCFG_EXAMPLE_VIDEO_READONLY
|
2021-01-13 16:59:55 +07:00
|
|
|
|
|
|
|
LD_FILE = $(BOARD_PATH)/samd21g18a_flash.ld
|
|
|
|
|
2023-06-27 12:05:59 +02:00
|
|
|
# Default bootloader size is now 2K, allow to specify other
|
|
|
|
ifeq ($(BOOTLOADER_SIZE), )
|
|
|
|
BOOTLOADER_SIZE := 0x800
|
|
|
|
endif
|
|
|
|
LDFLAGS += -Wl,--defsym=BOOTLOADER_SIZE=$(BOOTLOADER_SIZE)
|
|
|
|
|
2021-01-13 16:59:55 +07:00
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = ATSAMD21G18
|
|
|
|
|
|
|
|
# flash using dfu-util
|
2021-01-26 12:46:24 +07:00
|
|
|
flash: $(BUILD)/$(PROJECT).bin
|
2021-01-13 16:59:55 +07:00
|
|
|
dfu-util -a 0 -d 1d50:615c -D $< || dfu-util -a 0 -d 16d0:05a5 -D $<
|