-->
Page 1 of 3

OTA of large sketch

PostPosted: Fri Feb 09, 2018 11:51 pm
by pidloop
Hello,

I would like to try OTA updating. I have the http server version working well on a test sketch of about 300 kB. But my real project sketch is currently 840 kB. I understand this will not work because new sketch must be temporarily copied into the first 1MB so there is not enough room remaining.

However I have 4 MB total FLASH and last 3 MB are called SPIFFS so I wonder if that can be used somehow? I am not using the FLASH file system for anything. Thanks for any clues.

Re: OTA of large sketch

PostPosted: Sat Feb 10, 2018 12:59 am
by pidloop
Me again :-) It occurs to me I could do this in two steps: the large sketch requests and loads a small sketch which then requests and loads the large sketch. Comments? Suggestions? Thanks much.

Re: OTA of large sketch

PostPosted: Sat Feb 10, 2018 2:57 am
by jankop
Nice idea, but the esp8266 bare kernel has 246KB

Code: Select allvoid setup(void) {
 }
void loop(void) {
}

Re: OTA of large sketch

PostPosted: Sat Feb 10, 2018 3:19 am
by Pablo2048
Why you did not try the simplest approach? Instead of 1/3M division use the 2/2M (I'm using this for months now), so you can upload up to 1MB sketch without any problem? I'm using this on Arduino IDE and on PIO...