Skip to content

Commit 286f2d2

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 9a04352 + dd6f9ab commit 286f2d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/nrf/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_MOD) $(SRC_COMMON_HAL_EXPANDED) $(S
239239
# Sources that only hold QSTRs after pre-processing.
240240
SRC_QSTR_PREPROCESSOR +=
241241

242+
UF2_FAMILY_ID_nrf52840 = 0xADA52840
243+
UF2_FAMILY_ID_nrf52833 = 0x621E937A
244+
242245

243246
all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2 $(BUILD)/firmware.combined.hex
244247

@@ -264,7 +267,7 @@ $(BUILD)/firmware.combined.hex: $(BUILD)/firmware.hex $(SOFTDEV_HEX)
264267

265268
$(BUILD)/firmware.uf2: $(BUILD)/firmware.hex
266269
$(ECHO) "Create $@"
267-
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f 0xADA52840 -c -o "$(BUILD)/firmware.uf2" $^
270+
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID_$(MCU_CHIP)) -c -o "$(BUILD)/firmware.uf2" $^
268271

269272

270273

0 commit comments

Comments
 (0)