mikalhart / ESP32-OTA-Pull

An ESP32/Arduino library for doing easy "pull"-based OTA ("Over The Air") updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Partion issue

evanderkuy opened this issue · comments

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

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.