Skip to content
Snippets Groups Projects
Commit b01a373a authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266: deploy: Use --flash_size=8m option to esptool.py.

Most esp8266 modules have at least 1MB (8Mbit) of flash. If not set, vendor
functions allow to access only first 512K.
parent cd6194ae
Branches
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE) ...@@ -148,7 +148,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) --baud $(BAUD) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin $(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --flash_size=8m 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment