summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-07-04 00:35:48 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-07-04 00:36:10 +0300
commitb19d273beb2b492fc538e4d9b0bebaf958a206fe (patch)
tree517613dbf6faecc6d194973de0790fb163ff7631
parent31b40eebe87b5d80ed3a25a6e38d789513af416c (diff)
downloadmicropython-b19d273beb2b492fc538e4d9b0bebaf958a206fe.tar.gz
micropython-b19d273beb2b492fc538e4d9b0bebaf958a206fe.zip
esp8266: Allow to easily override programming baudrate.
-rw-r--r--esp8266/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 20bfdb4aa3..d3d726592b 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -10,6 +10,7 @@ MAKE_FROZEN = ../tools/make-frozen.py
SCRIPTDIR = scripts
PORT = /dev/ttyACM0
+BAUD = 115200
CROSS_COMPILE = xtensa-lx106-elf-
ESP_SDK = $(shell $(CC) -print-sysroot)/usr
@@ -111,7 +112,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE)
deploy: $(BUILD)/firmware-combined.bin
$(ECHO) "Writing $< to the board"
#$(Q)esptool.py --port $(PORT) write_flash 0 $<
- $(Q)esptool.py --port $(PORT) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin
+ $(Q)time esptool.py --port $(PORT) --baud $(BAUD) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin
reset:
echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT)