Page 2 of 2

Re: triggering WDT in OTA

Posted: Wed Oct 12, 2022 12:16 am
by mzimmers
I realize this thread is ancient, but today I got bitten by the long execution time of esp_ota_begin(). In looking at the source code, I discovered the OTA_WITH_SEQUENTIAL_WRITES macro which can be used as the 2nd argument. It changed the execution time of esp_ota_begin() from about 3 seconds to about 20ms.

This solution won't work for everything, but it worked for my application.

Re: triggering WDT in OTA

Posted: Wed Nov 02, 2022 1:06 am
by StridingDragon
Any side effects yet on that `OTA_WITH_SEQUENTIAL_WRITES` usage?
I'm seeing WDT issues as well because I'm dealing with a pretty large OTA partition that takes over 6 seconds to erase.

I've just tried `OTA_WITH_SEQUENTIAL_WRITES` for my case and it works fine, but it slows down the overall OTA time quite a bit.

Re: triggering WDT in OTA

Posted: Wed Nov 02, 2022 1:57 pm
by mzimmers
No side effects that I'm aware of. Still works just fine.