How to decrease FW size to keep Web Update on ESP8266 #331
-
ESP3D size yes is growing and growing and with coming notifications feature and others it won't fit the necessary space for small file system and web update. On ESP8266 4M flash boards
Once flash with new partition is done, need to format new filesystem : What about 1M Flash board ?Do not worry there is another tricks before compiling and flashing ESP3D:
After done these operations you can compile and flash ESP3D, this will save several KB What about old 512KB ESP01 ? And I still want OTA 😈Well, the only solution is to upgrade to 4MB, SPI flash has 8 pins and can be done using a soldering station - I won't say it is easy but it is feasible, check this video : I had 5 module 512KB, 3 modules were reworked properly, 1 without success but did not check it was working before, one I damaged one pad when unsoldering original flash so cannot solder a new one( so be gentle when unsolder, do not over heat ) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: since ESP8266 release 2.7.1 the update can handle compressed binary the binary is installed at next boot so it will need 2 reboots, these reboots are automatics
and voila... you should have updated your ESP01S Thanks @d-a-v for the suggestion ^_^ |
Beta Was this translation helpful? Give feedback.
Update: since ESP8266 release 2.7.1 the update can handle compressed binary the binary is installed at next boot so it will need 2 reboots, these reboots are automatics
For 1MB flash I recommend FS:144KB max which give OTA 430KB, if this is not what you have in use you will need to reupload the index.html.gz after update and use the single language package
If your current FW is not using the EP8266 2.7.1 core you need to install a small FW first to allow compressed update -
//#define USE_AS_UPDATER_ONLY
Now generate a normal binary with optio…