OTA1 Never used with Simple OTA
Posted: Wed Aug 12, 2020 11:52 pm
Hello,
I am using the simple OTA example to update my app.
I can successfully relfash OTA0 from the Factory app and boot into OTA0.
However, if I go to back to Factory to reflash again, it still uses OTA0. Shouldn't it point to OTA1 for the next update?
Everytime I check esp_ota_get_next_update_partition, it does not seem to point to OTA1 ever....
I am on a 16mb flash size, using the below partition table.
nvs data nvs 0x4000
otadata data ota 0x2000
phy_init data phy 0x1000
factory app factory 2M
ota_0 app ota_0 4M
ota_1 app ota_1 4M
I am using the simple OTA example to update my app.
I can successfully relfash OTA0 from the Factory app and boot into OTA0.
However, if I go to back to Factory to reflash again, it still uses OTA0. Shouldn't it point to OTA1 for the next update?
Everytime I check esp_ota_get_next_update_partition, it does not seem to point to OTA1 ever....
I am on a 16mb flash size, using the below partition table.
nvs data nvs 0x4000
otadata data ota 0x2000
phy_init data phy 0x1000
factory app factory 2M
ota_0 app ota_0 4M
ota_1 app ota_1 4M