Skip to content

Commit 1bbc389

Browse files
committed
esp8266: Allow to override serial port.
1 parent 075d597 commit 1bbc389

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

esp8266/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ifeq ($(ESP_SDK),)
1010
$(error ESP_SDK must be set)
1111
endif
1212

13+
PORT = /dev/ttyACM0
1314
CROSS_COMPILE = xtensa-lx106-elf-
1415

1516
INC = -I.
@@ -72,9 +73,9 @@ all: $(BUILD)/firmware-combined.bin
7273

7374
deploy: $(BUILD)/firmware-combined.bin
7475
$(ECHO) "Writing $< to the board"
75-
$(Q)esptool.py --port /dev/ttyACM0 write_flash 0 $<
76-
#$(Q)esptool.py --port /dev/ttyACM0 write_flash 0 $(BUILD)/firmware.elf-0x00000.bin
77-
#$(Q)esptool.py --port /dev/ttyACM0 write_flash 0x10000 $(BUILD)/firmware.elf-0x10000.bin
76+
$(Q)esptool.py --port $(PORT) write_flash 0 $<
77+
#$(Q)esptool.py --port $(PORT) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin
78+
#$(Q)esptool.py --port $(PORT) write_flash 0x10000 $(BUILD)/firmware.elf-0x10000.bin
7879

7980
$(BUILD)/firmware-combined.bin: $(BUILD)/firmware.elf
8081
$(ECHO) "Create $@"

0 commit comments

Comments
 (0)