We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb008cd commit a1be272Copy full SHA for a1be272
atmel-samd/Makefile
@@ -159,9 +159,11 @@ LIBS := -lgcc -lc
159
ifeq ($(CHIP_FAMILY), samd21)
160
LDFLAGS += -mthumb -mcpu=cortex-m0plus -Lasf/thirdparty/CMSIS/Lib/GCC/
161
LIBS := -lm $(LIBS) # -larm_cortexM0l_math
162
+BOOTLOADER_SIZE := 0x2000
163
else ifeq ($(CHIP_FAMILY), samd51)
164
LDFLAGS += -mthumb -mcpu=cortex-m4
165
LIBS := -lm $(LIBS)
166
+BOOTLOADER_SIZE := 0x4000
167
endif
168
169
SRC_ASF := \
@@ -320,7 +322,7 @@ $(BUILD)/firmware.bin: $(BUILD)/firmware.elf
320
322
321
323
$(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
324
$(ECHO) "Create $@"
- python2 $(TOP)/tools/uf2/utils/uf2conv.py -c -o $@ $^
325
+ python2 $(TOP)/tools/uf2/utils/uf2conv.py -b $(BOOTLOADER_SIZE) -c -o $@ $^
326
327
deploy: $(BUILD)/firmware.bin
328
$(ECHO) "Writing $< to the board"
0 commit comments