Serial Flashing factory and OTA
Posted: Wed Jun 27, 2018 2:41 pm
In our application, the memory is allocated to a factory(720K), OTA_0(1.7M), and OTA_1(1.7M) partitions. The app we are loading in the factory slot is designed to do basic operations and set up OTA updates from a mobile device. Our core functionality will reside in the app loaded in the larger OTA slots.
Our current method of getting the ESP32 up and going is to flash the bootloader, partition info, and factory binaries to memory. Next we do a OTA update from the mobile app. This method works and is OK for testing, but we are about to have 20K units to load. I haven't found information on how to flash the factory and OTA slots and have the ESP boot the OTA app not factory. I assume the OTA boot data could be flashed as well? Is there documentation that I'm overlooking on how to set this up?
Our current method of getting the ESP32 up and going is to flash the bootloader, partition info, and factory binaries to memory. Next we do a OTA update from the mobile app. This method works and is OK for testing, but we are about to have 20K units to load. I haven't found information on how to flash the factory and OTA slots and have the ESP boot the OTA app not factory. I assume the OTA boot data could be flashed as well? Is there documentation that I'm overlooking on how to set this up?