File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ ESP_AUTOGEN_LD = $(BUILD)/esp-idf/esp-idf/esp32s2/esp32s2_out.ld $(BUILD)/esp-id
258
258
259
259
FLASH_FLAGS = --flash_mode $(CIRCUITPY_ESP_FLASH_MODE ) --flash_freq $(CIRCUITPY_ESP_FLASH_FREQ ) --flash_size $(CIRCUITPY_ESP_FLASH_SIZE )
260
260
261
- all : $(BUILD ) /firmware.bin
261
+ all : $(BUILD ) /firmware.bin $( BUILD ) /firmware.uf2
262
262
263
263
$(BUILD ) /firmware.elf : $(OBJ ) | $(ESP_IDF_COMPONENTS_EXPANDED ) $(ESP_AUTOGEN_LD )
264
264
$(STEPECHO ) " LINK $@ "
@@ -274,6 +274,10 @@ $(BUILD)/circuitpython-firmware.bin: $(BUILD)/firmware.elf
274
274
$(BUILD ) /firmware.bin : $(BUILD ) /esp-idf/partition_table/partition-table.bin $(BUILD ) /esp-idf/bootloader/bootloader.bin $(BUILD ) /circuitpython-firmware.bin
275
275
$(Q )$(PYTHON ) ../../tools/join_bins.py $@ 0x1000 $(BUILD ) /esp-idf/bootloader/bootloader.bin 0x8000 $(BUILD ) /esp-idf/partition_table/partition-table.bin 0x10000 $(BUILD ) /circuitpython-firmware.bin
276
276
277
+ $(BUILD ) /firmware.uf2 : $(BUILD ) /circuitpython-firmware.bin
278
+ $(STEPECHO ) " Create $@ "
279
+ $(Q )$(PYTHON3 ) $(TOP ) /tools/uf2/utils/uf2conv.py -f 0xbfdd4eee -b 0x0000 -c -o $@ $^
280
+
277
281
flash : $(BUILD ) /firmware.bin
278
282
esptool.py --chip esp32s2 -p $(PORT ) --no-stub -b 460800 --before=default_reset --after=hard_reset write_flash $(FLASH_FLAGS ) 0x0000 $^
279
283
You can’t perform that action at this time.
0 commit comments