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 31
31
endif
32
32
endif
33
33
34
+ # If the flash PORT is not given, use the default /dev/tty.SLAB_USBtoUART.
35
+ PORT ?= /dev/tty.SLAB_USBtoUART
36
+
34
37
# If the build directory is not given, make it reflect the board name.
35
38
BUILD ?= build-$(BOARD )
36
39
@@ -270,7 +273,7 @@ $(BUILD)/firmware.bin: $(BUILD)/esp-idf/partition_table/partition-table.bin $(BU
270
273
$(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
271
274
272
275
flash : $(BUILD ) /firmware.bin
273
- esptool.py --chip esp32s2 -p /dev/tty.SLAB_USBtoUART -b 460800 --before=default_reset --after=hard_reset write_flash $(FLASH_FLAGS ) 0x0000 $^
276
+ esptool.py --chip esp32s2 -p $( PORT ) -b 460800 --before=default_reset --after=hard_reset write_flash $(FLASH_FLAGS ) 0x0000 $^
274
277
275
278
include $(TOP ) /py/mkrules.mk
276
279
You can’t perform that action at this time.
0 commit comments