summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-28 11:28:16 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-28 11:28:16 +0300
commitb01a373adbe70a012f65bdc7640501648370f46a (patch)
tree78cf3ccad9e30d772f7832e556820babbd38a6fe
parentcd6194aefcab407f1fe580766008216ebab7e4a0 (diff)
downloadmicropython-b01a373adbe70a012f65bdc7640501648370f46a.tar.gz
micropython-b01a373adbe70a012f65bdc7640501648370f46a.zip
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.
-rw-r--r--esp8266/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 9a15c547b0..50862623d5 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -148,7 +148,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) --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:
echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT)