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.
triggering WDT in OTA
-
- Posts: 46
- Joined: Fri Aug 02, 2019 11:59 pm
Re: triggering WDT in OTA
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.
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
No side effects that I'm aware of. Still works just fine.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 162 guests