-->
Page 8 of 9

Re: OTA Flashing

PostPosted: Mon May 25, 2015 1:08 pm
by mharizanov
I managed to implement a ESP8266 initiated firmware upgrade using SDK's upgrade function system_upgrade_start; This for me is the more useful use case, as the nodes will be able to check for new firmware version hosted on a central repository and reflash themselves wherever they are, even behind firewalls.

Will post code in a while

Re: OTA Flashing

PostPosted: Mon May 25, 2015 1:36 pm
by tve
Nice, I am looking forward for the code! It comes down to two very different use-cases: pushing new FW in development mode vs. pull updates in "production" mode.

Re: OTA Flashing

PostPosted: Mon May 25, 2015 2:31 pm
by MrZANE
Hi again tve

Thanks for the continous blogging about the bootloader/OTA, it's very interresting to read.
Have you given any thought to maybe write the configuration structure to 2 different flash pages?
It's no big deal since I can change the code myself if I'll ues it for a project, I just thought it might be wise if it's to be used in a real mass produced product.
Again, thanks for all your hard work.

Re: OTA Flashing

PostPosted: Mon May 25, 2015 2:44 pm
by tve
Sorry, which configuration structure? There currently is no configuration saved in flash other than the system config, which the SDK manages. I believe that what you are referring to is described in the "advice" sections of the Espressif document 99A-ESP8266__Flash_RW_Operation__EN_v0.2.pdf

I'll have to cross that bridge soon...