-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TW#24595] Bootloader locks up when OTA is set but no OTA partition is present. #2218
Comments
Also note that "GPIO triggers factory reset" is not able to recover from this condition. |
The new project has an otadata partition in its partition table? |
Hi @OtherCrashOverride ! Regarding why booting not starting from the factory: here has an error of division on zero (https://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/bootloader_utility.c#L253) because you remove ota_x and remain an ota_data partition (bs->app_count = 0). We will fix this. |
Hi @OtherCrashOverride , this issue should have been fixed, please have a try and feel free to reopen if your problem is still unsolved. Thanks. |
Keeping this open for now — the fix is not on Github yet. Issue will be closed automatically when the fix is deployed. |
… entry If we have the partition table without any ota_apps but in ota_data have valide entry, in this case we get an error(hang). This commit fix this case. If bs->app_count is zero when selecting the factory app. Closes #2218
… entry If we have the partition table without any ota_apps but in ota_data have valide entry, in this case we get an error(hang). This commit fix this case. If bs->app_count is zero when selecting the factory app. Closes espressif/esp-idf#2218
… entry If we have the partition table without any ota_apps but in ota_data have valide entry, in this case we get an error(hang). This commit fix this case. If bs->app_count is zero when selecting the factory app. Closes espressif/esp-idf#2218
Environment
Problem Description
When a project is flashed that has an OTA partition and that OTA is set as active, flashing a new project that does not have an OTA partition causes the bootloader to hang.
Expected Behavior
If an OTA partition is expected, but not present, the factory partition should be used instead.
Actual Behavior
Bootloader hangs. The flash must be erased to restore operation.
Steps to repropduce
Code to reproduce this issue
Debug Logs
Other items if possible
build
folder (note this may contain all the code details and symbols of your project.)The text was updated successfully, but these errors were encountered: