Re: Example of featured sketch wanted
Posted: Fri Oct 12, 2018 3:54 pm
OTA needs twice as much flash as the size of the program image. It is saved to flash during the OTA operation but not on top of the previous image which is still running during OTA.
So a 410K image needs a 1MB flash assuming SPIFFS is not using flash. With larger flash you can choose how much to allocate to program and how much to SPIFFS. So a 4MB could be allocated at 1MB program and 3MB SPIFFS. A 2/2 or 3/1 split allow for larger program images with OTA although maximum image size is 1M anyway.
So a 410K image needs a 1MB flash assuming SPIFFS is not using flash. With larger flash you can choose how much to allocate to program and how much to SPIFFS. So a 4MB could be allocated at 1MB program and 3MB SPIFFS. A 2/2 or 3/1 split allow for larger program images with OTA although maximum image size is 1M anyway.