Skip to content

Commit b19d273

Browse files
committed
esp8266: Allow to easily override programming baudrate.
1 parent 31b40ee commit b19d273

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esp8266/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MAKE_FROZEN = ../tools/make-frozen.py
1010

1111
SCRIPTDIR = scripts
1212
PORT = /dev/ttyACM0
13+
BAUD = 115200
1314
CROSS_COMPILE = xtensa-lx106-elf-
1415
ESP_SDK = $(shell $(CC) -print-sysroot)/usr
1516

@@ -111,7 +112,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE)
111112
deploy: $(BUILD)/firmware-combined.bin
112113
$(ECHO) "Writing $< to the board"
113114
#$(Q)esptool.py --port $(PORT) write_flash 0 $<
114-
$(Q)esptool.py --port $(PORT) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin
115+
$(Q)time esptool.py --port $(PORT) --baud $(BAUD) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin
115116

116117
reset:
117118
echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT)

0 commit comments

Comments
 (0)