Commit b19d273b authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266: Allow to easily override programming baudrate.

parent 31b40eeb
...@@ -10,6 +10,7 @@ MAKE_FROZEN = ../tools/make-frozen.py ...@@ -10,6 +10,7 @@ MAKE_FROZEN = ../tools/make-frozen.py
SCRIPTDIR = scripts SCRIPTDIR = scripts
PORT = /dev/ttyACM0 PORT = /dev/ttyACM0
BAUD = 115200
CROSS_COMPILE = xtensa-lx106-elf- CROSS_COMPILE = xtensa-lx106-elf-
ESP_SDK = $(shell $(CC) -print-sysroot)/usr ESP_SDK = $(shell $(CC) -print-sysroot)/usr
...@@ -111,7 +112,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE) ...@@ -111,7 +112,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE)
deploy: $(BUILD)/firmware-combined.bin deploy: $(BUILD)/firmware-combined.bin
$(ECHO) "Writing $< to the board" $(ECHO) "Writing $< to the board"
#$(Q)esptool.py --port $(PORT) write_flash 0 $< #$(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: reset:
echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT) echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment