You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the OTA example code and after two OTAs, it was getting stuck loading only the second OTA app (subtype 0x11). It looks like the sequence value for A was incremented to 0x00000003 and since the bootloader is using the following:
get_selected_boot_partition() continues to return 2 and the bootloader loads OTA App #2 instead of cycling back to load the first slot.
I haven't dug into the ota_ops code enough to contribute a proper fix. I'm doing a hacky return (MAX(sa.ota_seq, sb.ota_seq) - 1) % 2; in the above bootloader code, but this can't be the correct fix for this.
Anyone able to help on this?
The text was updated successfully, but these errors were encountered:
I was using the OTA example code and after two OTAs, it was getting stuck loading only the second OTA app (subtype 0x11). It looks like the sequence value for A was incremented to 0x00000003 and since the bootloader is using the following:
esp-idf/components/bootloader/subproject/main/bootloader_start.c
Line 332 in 9da1bf1
get_selected_boot_partition()
continues to return2
and the bootloader loads OTA App #2 instead of cycling back to load the first slot.I haven't dug into the ota_ops code enough to contribute a proper fix. I'm doing a hacky
return (MAX(sa.ota_seq, sb.ota_seq) - 1) % 2;
in the above bootloader code, but this can't be the correct fix for this.Anyone able to help on this?
The text was updated successfully, but these errors were encountered: