Skip to content

Commit b01a373

Browse files
committed
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.
1 parent cd6194a commit b01a373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp8266/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE)
148148
deploy: $(BUILD)/firmware-combined.bin
149149
$(ECHO) "Writing $< to the board"
150150
#$(Q)esptool.py --port $(PORT) write_flash 0 $<
151-
$(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin
151+
$(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --flash_size=8m 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin
152152

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

0 commit comments

Comments
 (0)