Alexandre Iooss aefd48b801 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>
2024-09-06 20:36:06 +10:00

18 lines
367 B
Makefile

CFLAGS_MCU += -mtune=cortex-m0plus -mcpu=cortex-m0plus -msoft-float
CFLAGS_MCU += -DCFG_TUSB_MCU=OPT_MCU_SAMD21
MPY_CROSS_MCU_ARCH = armv6m
MICROPY_HW_CODESIZE ?= 184K
ifeq ($(MICROPY_HW_CODESIZE), 248K)
FROZEN_MANIFEST ?= mcu/$(MCU_SERIES_LOWER)/manifest.py
endif
MICROPY_VFS_LFS1 ?= 1
SRC_S += shared/runtime/gchelper_thumb1.s
UF2CONV_FLAGS += -f 0x68ed2b88