Skip to content

Commit

Permalink
Changed fllashing order
Browse files Browse the repository at this point in the history
Workaround for a ESP8266 ROM bug that cuases SPI flash erase
to sometimes erase an extra sector. See
espressif/esptool#33
  • Loading branch information
kanflo committed Jul 23, 2015
1 parent c95369e commit 9cf3085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ $(FW_FILE_1) $(FW_FILE_2): $(PROGRAM_OUT) $(FW_BASE)
$(ESPTOOL) elf2image $< -o $(FW_BASE)

flash: $(FW_FILE_1) $(FW_FILE_2)
$(ESPTOOL) -p $(ESPPORT) --baud $(ESPBAUD) write_flash $(FW_1) $(FW_FILE_1) $(FW_2) $(FW_FILE_2)
$(ESPTOOL) -p $(ESPPORT) --baud $(ESPBAUD) write_flash $(FW_2) $(FW_FILE_2) $(FW_1) $(FW_FILE_1)

size: $(PROGRAM_OUT)
$(Q) $(CROSS)size --format=sysv $(PROGRAM_OUT)
Expand Down

0 comments on commit 9cf3085

Please sign in to comment.