mikalhart / ESP32-OTA-Pull

An ESP32/Arduino library for doing easy "pull"-based OTA ("Over The Air") updates
MIT License
34 stars 11 forks source link

Partion issue #11

Open evanderkuy opened 1 month ago

evanderkuy commented 1 month ago

Hi Mikal,

Thanks for this great functionality. I am able to upload the new firmware, see the percentages running up to 100%. But it won't boot on the correct new partion. And now when I flash firmware over JTAG it keeps booting with the old firmware. Do I miss some basic partition understanding/action as I can't find it online?

This is my partition table:

Name,Type,SubType,,Size

nvs,data,nvs,,16K, otadata,data,ota,,0x2000, factory,app,factory,,2M, app0,app,ota_0,,2M, app1,app,ota_1,,2M, coredump,data,coredump,,32K

Best regads Etienne

evanderkuy commented 1 month ago

I found out, that after the first OTA update, the only way to have the device boot from factory again is by erasing the otadata partion or by erasing all flash data. So you are able to upload a new version via e.g. JTAG, but it will never boot from it once you have had an OTA update.