samd/Makefile: Specify UF2 family in firmware.uf2.

Set the UF2 firmware images family to Microchip SAMD21 or SAMD51.  This
helps tools such as file to identify built firmware.

Signed-off-by: Alexandre Iooss <erdnaxe@crans.org>
This commit is contained in:
Alexandre Iooss 2024-09-03 10:58:07 +02:00 committed by Damien George
parent e23fdb1f77
commit aefd48b801
3 changed files with 5 additions and 1 deletions

View File

@ -183,7 +183,7 @@ $(BUILD)/firmware.bin: $(BUILD)/firmware.elf
$(Q)$(OBJCOPY) -O binary -j .isr_vector -j .text -j .data $^ $(BUILD)/firmware.bin
$(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
$(Q)$(PYTHON) $(UF2CONV) -b $(TEXT0) -c -o $@ $<
$(Q)$(PYTHON) $(UF2CONV) $(UF2CONV_FLAGS) -b $(TEXT0) -c -o $@ $<
# pin_af.c: $(BUILD)/$(GEN_PIN_AF) | $(HEADER_BUILD)

View File

@ -13,3 +13,5 @@ endif
MICROPY_VFS_LFS1 ?= 1
SRC_S += shared/runtime/gchelper_thumb1.s
UF2CONV_FLAGS += -f 0x68ed2b88

View File

@ -14,3 +14,5 @@ SRC_S += shared/runtime/gchelper_thumb2.s
SRC_C += \
fatfs_port.c \
UF2CONV_FLAGS += -f 0x55114460