You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have several magic home spi devices with 1M flash size. This device is pretty much hard to flash and they are also stuck to somewhere on a surface so I want to avoid flashing it with a cable.
Describe the solution you'd like
OTA update, one step or two-step like tasmota has.
If you go back to prior to v0.11, I think it will fit and allow OTA updates, but once you get 0.11 installed, I think that's as far as it goes.
To go further requires hardware modification to your device. Find the 1M flash chip. Search YT for 4M flash chip upgrades for ESP8266 (like SONOFFs), order new flash and install - assuming you feel comfortable doing that. Or, ask a friend with better soldering skills / equipment to help.
Hmmm... so then I need to remove the ESP shield, remove the flash chip, install probably a W25Q32FVSSIG flash chip and install back the ESP shield. I just hope there will be enough space under the shield for this.
If you feel comfortable doing that, yea, that is the idea. Swap out the flash chip with a larger capacity chip, load WLED. Then OTA should work without a problem.
Nowadays, you can buy 2MB ESP8285 chips and modules containing it. Just look for this in the item description. My SP501E controller had 2MB ESP8285 from the get-go.
They don't write this information there, I've just bought now SP501E, and I've just given up trying to flash them, For some reason, I can't make it. I've always got permission denied when I try to run the esptool.py chip_id command from admin cmd... I might try tomorrow to solder the pins there, but I don't see too much success rate right now with it...
Would love to have an option for this even if it requires no ui (configure via http rest) and all other addons turned off besides e1.31
That would mean strip 90% of WLED code. 🤣
You may be better off with some other controller.
Oh deff would easier to just use a better controller however not something that is changeable in RGB light bulbs. Most lightbulbs are 1Mb to 2Mb, nothing seems to be higher than that unfortunately.
I personally use quite a few ESP01 modules and trust me I'd like to see a possibility to OTA those.
We tried many options but WLED just became too big for any solution.
OTA on 1MB chips is unachievable at this point.
Closing.
Good news on OTA update for ESP01 or other 1MB flash units.
@tony-fav (@DrTFav aka @tony on Discord) has devised a method (2 step) that allows updating 1M units with latest version using OTA update. It is a bit involved and consists of the following:
gzip updater.bin and copy it to a safe location (as updater.bin.gz)
Prepare appropriate WLED binary:
build WLED firmware by extending env:esp01_1m_full in PIO but using such overrides that the code size is less than 715000 bytes (you may use: -D WLED_DISABLE_ALEXA -D WLED_DISABLE_BLYNK -D WLED_DISABLE_CRONIXIE -D WLED_DISABLE_HUESYNC -D WLED_DISABLE_LOXONE -D WLED_DISABLE_MQTT -D WLED_DISABLE_WEBSOCKETS), make sure OTA is enabled
upload this firmware using USB (only needed first time)
configure WLED as usual
When you are ready to update your ESP01 OTA do the following:
use espota.py tool to upload minimal updater to ESP01
If the update fails it may mean your binary is too big. You can try to gzip it (I did not have success though).
I also noticed that WLED forgot my WiFi credentials during the update but retained all other settings.
Reacted by tony, Christian Schwinne, Steve and Jt Whissel
Thanks for the write up @blazoncek! This methods works pretty well, all; but, I would suggest practicing the upgrade loop on something easy to serial flash like an ESP01. I've used this method to put WLED on some RGB PWM bulbs for those sweet effects 😁, but each time I compile a new WLED binary or minimal updater binary, I make sure to practice on something easier to serial flash if something breaks (sizes don't work for some reason).
Replace WLEDPATH, MINPATH and ESPPATH with paths for your environment. You will also need to clone Minimal Updater as noted above and have it compiled with your WiFi credentials.
The same goes for WLED.
Use -D CLIENT_SSID='"yourssid"' and -D CLIENT_PASS='"yourpassword"' in your build environment (assumed [env:esp01_1m_ota] for the script above) for WLED (in platformio.ini or platformio_override.ini).
The script will backup and restore settings and presets for your convenience.
Activity
blazoncek commentedon Jun 28, 2021
Not possible. Not even with workarounds since even the smallest WLED image is still too big.
huggy-d1 commentedon Jun 28, 2021
If you go back to prior to v0.11, I think it will fit and allow OTA updates, but once you get 0.11 installed, I think that's as far as it goes.
To go further requires hardware modification to your device. Find the 1M flash chip. Search YT for 4M flash chip upgrades for ESP8266 (like SONOFFs), order new flash and install - assuming you feel comfortable doing that. Or, ask a friend with better soldering skills / equipment to help.
golddragon007 commentedon Jun 28, 2021
Hmmm... so then I need to remove the ESP shield, remove the flash chip, install probably a W25Q32FVSSIG flash chip and install back the ESP shield. I just hope there will be enough space under the shield for this.
huggy-d1 commentedon Jun 28, 2021
If you feel comfortable doing that, yea, that is the idea. Swap out the flash chip with a larger capacity chip, load WLED. Then OTA should work without a problem.
golddragon007 commentedon Aug 4, 2021
Haha I can't find here the flash chip :D great...
huggy-d1 commentedon Aug 4, 2021
That has the ESP8285 which has 1MB flash built into the microcontroller chip. So, it’s there but hidden from prying eyes.
golddragon007 commentedon Aug 4, 2021
That means that I can't upgrade it. At least not in an easy way...
Leo-PL commentedon Aug 20, 2021
Nowadays, you can buy 2MB ESP8285 chips and modules containing it. Just look for this in the item description. My SP501E controller had 2MB ESP8285 from the get-go.
golddragon007 commentedon Aug 20, 2021
They don't write this information there, I've just bought now SP501E, and I've just given up trying to flash them, For some reason, I can't make it. I've always got permission denied when I try to run the esptool.py chip_id command from admin cmd... I might try tomorrow to solder the pins there, but I don't see too much success rate right now with it...
golddragon007 commentedon Aug 20, 2021
Oh and I HOPE that I've got 2M version, otherwise I will have a bad day...
Phara0h commentedon Sep 20, 2021
Would love to have an option for this even if it requires no ui (configure via http rest) and all other addons turned off besides e1.31
blazoncek commentedon Sep 21, 2021
That would mean strip 90% of WLED code. 🤣
You may be better off with some other controller.
Phara0h commentedon Sep 22, 2021
Oh deff would easier to just use a better controller however not something that is changeable in RGB light bulbs. Most lightbulbs are 1Mb to 2Mb, nothing seems to be higher than that unfortunately.
blazoncek commentedon Sep 22, 2021
I personally use quite a few ESP01 modules and trust me I'd like to see a possibility to OTA those.
We tried many options but WLED just became too big for any solution.
OTA on 1MB chips is unachievable at this point.
Closing.
blazoncek commentedon Nov 28, 2021
Good news on OTA update for ESP01 or other 1MB flash units.
@tony-fav (@DrTFav aka @tony on Discord) has devised a method (2 step) that allows updating 1M units with latest version using OTA update. It is a bit involved and consists of the following:
Prepare minimal updater:
Prepare appropriate WLED binary:
env:esp01_1m_fullin PIO but using such overrides that the code size is less than 715000 bytes (you may use: -D WLED_DISABLE_ALEXA -D WLED_DISABLE_BLYNK -D WLED_DISABLE_CRONIXIE -D WLED_DISABLE_HUESYNC -D WLED_DISABLE_LOXONE -D WLED_DISABLE_MQTT -D WLED_DISABLE_WEBSOCKETS), make sure OTA is enabledWhen you are ready to update your ESP01 OTA do the following:
If the update fails it may mean your binary is too big. You can try to gzip it (I did not have success though).
I also noticed that WLED forgot my WiFi credentials during the update but retained all other settings.
tony-fav commentedon Nov 28, 2021
Thanks for the write up @blazoncek! This methods works pretty well, all; but, I would suggest practicing the upgrade loop on something easy to serial flash like an ESP01. I've used this method to put WLED on some RGB PWM bulbs for those sweet effects 😁, but each time I compile a new WLED binary or minimal updater binary, I make sure to practice on something easier to serial flash if something breaks (sizes don't work for some reason).
blazoncek commentedon Dec 11, 2021
I have prepared a bash script if anyone wants to bulk update many ESP01's (or just one).
Replace WLEDPATH, MINPATH and ESPPATH with paths for your environment. You will also need to clone Minimal Updater as noted above and have it compiled with your WiFi credentials.
The same goes for WLED.
Use
-D CLIENT_SSID='"yourssid"'and-D CLIENT_PASS='"yourpassword"'in your build environment (assumed[env:esp01_1m_ota]for the script above) for WLED (in platformio.ini or platformio_override.ini).The script will backup and restore settings and presets for your convenience.
Imperattor commentedon Feb 23, 2022
Could you please tell me what kind of board this is?
dosipod commentedon Feb 24, 2022
look up ESP8285 #2040 (comment)