Roll Back Firmware After OTA Update
Posted: Tue Jun 07, 2016 9:41 am
I'm successfully using the ESP8266httpUpdate library for OTA updates using a remote server. The current firmware can grab the new .bin file and restart with the new file perfectly. Is there a way to have a default version of firmware stored on the ESP8266 just in case the new OTA firmware mucks something up?
This is the basic memory layout for OTA updates:
I'm wondering if I'd be able to store a default version or even a previous version in the same memory space. Then I would be able to use a button to roll back the firmware in case the new firmware mucked something up where it can't connect to get another firmware update. Can this be done?
This is the basic memory layout for OTA updates:
I'm wondering if I'd be able to store a default version or even a previous version in the same memory space. Then I would be able to use a button to roll back the firmware in case the new firmware mucked something up where it can't connect to get another firmware update. Can this be done?