![]() States control the process of selecting a boot app: The partition contains a ota_seq counter which is a pointer to the slot (ota_0, ota_1, …) from which the application will be selected for boot. Note: The state is not written to the binary image of the application it is written to the otadata partition. If the CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE option is set, and a reset occurs without calling either function then the application is rolled back. This application will not be selected by the bootloader for boot and will boot the previously working application. The application has critical errors and further work is not possible, a rollback to the previous application is required, esp_ota_mark_app_invalid_rollback_and_reboot() marks the running application with the state ESP_OTA_IMG_INVALID and reset. ![]() There are no restrictions on booting this application. ![]() ![]() The application works fine, esp_ota_mark_app_valid_cancel_rollback() marks the running application with the state ESP_OTA_IMG_VALID. When the rollback process is enabled and an OTA update provides a new version of the app, one of three things can happen: This feature allows you to roll back to the previous working application in case a new application has critical errors. The main purpose of the application rollback is to keep the device working after the update.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |