triggering WDT in OTA

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: triggering WDT in OTA

Postby mzimmers » Wed Oct 12, 2022 12:16 am

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.

StridingDragon
Posts: 46
Joined: Fri Aug 02, 2019 11:59 pm

Re: triggering WDT in OTA

Postby StridingDragon » Wed Nov 02, 2022 1:06 am

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.

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: triggering WDT in OTA

Postby mzimmers » Wed Nov 02, 2022 1:57 pm

No side effects that I'm aware of. Still works just fine.

Who is online

Users browsing this forum: Google [Bot] and 113 guests