File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,9 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_MOD) $(SRC_COMMON_HAL_EXPANDED) $(S
239
239
# Sources that only hold QSTRs after pre-processing.
240
240
SRC_QSTR_PREPROCESSOR +=
241
241
242
+ UF2_FAMILY_ID_nrf52840 = 0xADA52840
243
+ UF2_FAMILY_ID_nrf52833 = 0x621E937A
244
+
242
245
243
246
all : $(BUILD ) /firmware.bin $(BUILD ) /firmware.uf2 $(BUILD ) /firmware.combined.hex
244
247
@@ -264,7 +267,7 @@ $(BUILD)/firmware.combined.hex: $(BUILD)/firmware.hex $(SOFTDEV_HEX)
264
267
265
268
$(BUILD ) /firmware.uf2 : $(BUILD ) /firmware.hex
266
269
$(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" $^
268
271
269
272
270
273
You can’t perform that action at this time.
0 commit comments