From 9cf308565e09e21c07e847f0340e9d1093efdf9e Mon Sep 17 00:00:00 2001 From: Johan Kanflo Date: Thu, 23 Jul 2015 14:07:31 +0200 Subject: [PATCH] Changed fllashing order Workaround for a ESP8266 ROM bug that cuases SPI flash erase to sometimes erase an extra sector. See https://github.com/themadinventor/esptool/issues/33 --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 5878d370..1871b3c1 100644 --- a/common.mk +++ b/common.mk @@ -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)