File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,11 @@ LIBS := -lgcc -lc
159
159
ifeq ($(CHIP_FAMILY ) , samd21)
160
160
LDFLAGS += -mthumb -mcpu=cortex-m0plus -Lasf/thirdparty/CMSIS/Lib/GCC/
161
161
LIBS := -lm $(LIBS ) # -larm_cortexM0l_math
162
+ BOOTLOADER_SIZE := 0x2000
162
163
else ifeq ($(CHIP_FAMILY), samd51)
163
164
LDFLAGS += -mthumb -mcpu=cortex-m4
164
165
LIBS := -lm $(LIBS )
166
+ BOOTLOADER_SIZE := 0x4000
165
167
endif
166
168
167
169
SRC_ASF := \
@@ -319,7 +321,7 @@ $(BUILD)/firmware.bin: $(BUILD)/firmware.elf
319
321
320
322
$(BUILD ) /firmware.uf2 : $(BUILD ) /firmware.bin
321
323
$(ECHO ) " Create $@ "
322
- python2 $(TOP ) /tools/uf2/utils/uf2conv.py -c -o $@ $^
324
+ python2 $(TOP ) /tools/uf2/utils/uf2conv.py -b $( BOOTLOADER_SIZE ) - c -o $@ $^
323
325
324
326
deploy : $(BUILD ) /firmware.bin
325
327
$(ECHO ) " Writing $< to the board"
You can’t perform that action at this time.
0 commit comments