I've searched the internet and so far found no answer to this question. The esp8266 forum says it is closed and points to this forum.
I have an ESP8266 (WEMOS D1 Mini) with 4M of memory. I'm using the Arduino IDE. I'm unable to use OTA update of any type if the target binary is over about 350 KB. I get an error saying "New binary does not fit SPI flash size" when I have HTTP_UPDATE debugging enabled in the IDE. I'm using the example code from the IDE (nothing special) to try to do an OTA update to a binary that is about 399 KB. This happens even if I configure the IDE to have no FS in the partition table and set the table with an OTA size of ~1019KB. The debugging output indicates that the new binary file has a length of 399488 and that there is free space of 1781760. (the current binary size is listed as 312960. It seems that there should be plenty of memory available for the update. The update will succeed if the target file is about 320 KB, or a bit more. The update will also succeed if I try to use a WEMOS D1 Mini Pro with 16M of memory but with the same partition configuration. I've tried clearing the flash with esptool.py and it made no difference.
The build info for the system is:
SDK:2.2.2-dev(38a443e)/Core:3.1.2=30102000/lwIP:STABLE-2_1_3_RELEASE/glue:1.2-65-g06164fb/BearSSL:b024386
Should this update be possible? If so, what might I do to make it work?
ESP8266 OTA update Issue with 4M ESP8266
-
- Posts: 9725
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP8266 OTA update Issue with 4M ESP8266
Odd... you're right in that the firmware needs to fit in the OTA partitions; that's generally the limit. I'm not sure why it still complains when you resize those partitions, though.
Who is online
Users browsing this forum: No registered users and 113 guests