OTA - esp_ota_mark_app_invalid_rollback_and_reboot()

jhinkle
Posts: 35
Joined: Wed Aug 29, 2018 3:17 pm

OTA - esp_ota_mark_app_invalid_rollback_and_reboot()

Postby jhinkle » Wed Mar 19, 2025 1:57 am

Can esp_ota_mark_app_invalid_rollback_and_reboot() be used AFTER esp_ota_mark_app_valid_cancel_rollback()?

Here is an example:

A new release is made and it is loaded via a OTA process. During the first run - it appears all is ok so esp_ota_mark_app_valid_cancel_rollback() is executed. BUT - let's assume the change impacted an SPI SD Card process and since the SD Card usage is NOT guaranteed to be executed the first run - a issue was not found until some time (multiple reboots) later. When the issue IS identified - can esp_ota_mark_app_invalid_rollback_and_reboot() then be called to make THIS image not usable and revert to the prior OTA image?

Thanks in advance for any insight.

akshaay24
Posts: 16
Joined: Wed Jul 14, 2021 5:21 am

Re: OTA - esp_ota_mark_app_invalid_rollback_and_reboot()

Postby akshaay24 » Sun Jun 29, 2025 4:55 am

Hi,
Refer https://youtu.be/zKGgNX_1Cl8 for your answer on app rollback.

Thank you.

Who is online

Users browsing this forum: PerplexityBot, Qwantbot and 8 guests