From e86810fce2a3c88ca7ffcc631c3ddac53e1fa349 Mon Sep 17 00:00:00 2001 From: Pierre Constantineau Date: Thu, 23 Dec 2021 16:32:00 -0600 Subject: [PATCH] updating UF2_FAMILY_ID for nrf52833 --- ports/nrf/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 04a648a4e2..6db2b547c5 100755 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -239,6 +239,9 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_MOD) $(SRC_COMMON_HAL_EXPANDED) $(S # Sources that only hold QSTRs after pre-processing. SRC_QSTR_PREPROCESSOR += +UF2_FAMILY_ID_nrf52840 = 0xADA52840 +UF2_FAMILY_ID_nrf52833 = 0x621E937A + all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2 $(BUILD)/firmware.combined.hex @@ -264,7 +267,7 @@ $(BUILD)/firmware.combined.hex: $(BUILD)/firmware.hex $(SOFTDEV_HEX) $(BUILD)/firmware.uf2: $(BUILD)/firmware.hex $(ECHO) "Create $@" - $(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f 0xADA52840 -c -o "$(BUILD)/firmware.uf2" $^ + $(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID_$(MCU_CHIP)) -c -o "$(BUILD)/firmware.uf2" $^