- factory partition.
- one ota partition
(also using - custom bootloader)
The reason for not having two ota's is that my ota app is large and the 4MB flash can not hold ota0+ota1 (ota app ~ 2.1MB). Thus, created a factory app (~1MB) to re-flash the ota app. Factory is flashing new ota apps from a bin file in sdcard.
In rare case and in controlled setup, I need to re-flash the factory partition by ota app.
When I used the ota functions
Code: Select all
upd_part = esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_FACTORY, NULL);
Code: Select all
esp_ota_begin(upd_part, OTA_SIZE_UNKNOWN, &update_handle);
Is there a way to make (esp_ota_begin) accepts operation even if it is the factory?
Thanks.