add variable COMPORT

This commit is contained in:
MaBecker 2020-03-21 21:03:29 +01:00
parent e568c6c7ac
commit 73098f8065
2 changed files with 10 additions and 3 deletions

View File

@ -122,6 +122,7 @@
Changed 6x8 builtin font to a modified Dina_r400-6 supporting non-ASCII characters
Bangle.js: Modify E.showMessage/Prompt/Alert to clear the entire screen and redraw widgets (fix #1771)
Bangle.js: Modify Bangle.drawWidgets to only clear the areas where widgets actually are, not the whole top&bottom bar
ESP32: add environment variable COMPORT to be used with make flash
2v04 : Allow \1..\9 escape codes in RegExp
ESP8266: reading storage is not working for boot from user2 (fix #1507)

View File

@ -25,10 +25,13 @@ $(ESP_ZIP): $(PROJ_NAME).bin
proj: $(PROJ_NAME).bin $(ESP_ZIP)
flash:
flash: $(PROJ_NAME).bin
ifndef COMPORT
$(error "In order to flash, we need to have the COMPORT variable defined")
endif
python $(ESP_IDF_PATH)/components/esptool_py/esptool/esptool.py \
--chip esp32 \
--port "/dev/ttyUSB0" \
--port ${COMPORT} \
--baud 921600 \
write_flash \
-z \
@ -39,8 +42,11 @@ flash:
0x8000 $(ESP_APP_TEMPLATE_PATH)/build/partitions_espruino.bin
erase_flash:
ifndef COMPORT
$(error "In order to flash, we need to have the COMPORT variable defined")
endif
python $(ESP_IDF_PATH)/components/esptool_py/esptool/esptool.py \
--chip esp32 \
--port "/dev/ttyUSB0" \
--port ${COMPORT}\
--baud 921600 \
erase_flash