summaryrefslogtreecommitdiff
path: root/ports/esp32s2
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-05-26 13:09:57 -0700
committerScott Shawcroft <scott@tannewt.org>2020-05-26 13:09:57 -0700
commit2ffd70417d4fdbfcf86049d8ceef9901d1159945 (patch)
tree3844dfce2a89c968ce8b30be08e18ec4b160cd0d /ports/esp32s2
parent3bb6a32a2078452d3278b185a15721391d78a9db (diff)
parent19f0d82048560e861df598190c642095307f21b2 (diff)
Merge remote-tracking branch 'adafruit/master' into esp32s2_digitalio
Diffstat (limited to 'ports/esp32s2')
-rw-r--r--ports/esp32s2/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/esp32s2/Makefile b/ports/esp32s2/Makefile
index edd0fb250..1104c5289 100644
--- a/ports/esp32s2/Makefile
+++ b/ports/esp32s2/Makefile
@@ -31,6 +31,9 @@ else
endif
endif
+# If the flash PORT is not given, use the default /dev/tty.SLAB_USBtoUART.
+PORT ?= /dev/tty.SLAB_USBtoUART
+
# If the build directory is not given, make it reflect the board name.
BUILD ?= build-$(BOARD)
@@ -271,7 +274,7 @@ $(BUILD)/firmware.bin: $(BUILD)/esp-idf/partition_table/partition-table.bin $(BU
$(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
flash: $(BUILD)/firmware.bin
- esptool.py --chip esp32s2 -p /dev/tty.SLAB_USBtoUART -b 460800 --before=default_reset --after=hard_reset write_flash $(FLASH_FLAGS) 0x0000 $^
+ esptool.py --chip esp32s2 -p $(PORT) -b 460800 --before=default_reset --after=hard_reset write_flash $(FLASH_FLAGS) 0x0000 $^
include $(TOP)/py/mkrules.mk