ESP 32 Restart
Posted: Thu Apr 21, 2022 11:44 pm
We are getting some odd results restarting the ESP 32 after an OTA.
It seems like some peripherals are not reset (wifi, ble, spi, uart etc as described in the docs)
However, sometimes after an OTA erasing flash sectors appears to not work (about 50 % of the time erase returns success but reading the data shows it doesn't go to 0xFFs).
Pressing reset or powering down and back up make it function normally.
Is there a more forceful way to reset then esp_restart() that resets peripherals?
What might be related is if erase works we almost always get one rtc watch dog timer reset after the OTA completes and the new firmware has been running for 1-2 minutes then it runs fine.
Thanks
It seems like some peripherals are not reset (wifi, ble, spi, uart etc as described in the docs)
However, sometimes after an OTA erasing flash sectors appears to not work (about 50 % of the time erase returns success but reading the data shows it doesn't go to 0xFFs).
Pressing reset or powering down and back up make it function normally.
Is there a more forceful way to reset then esp_restart() that resets peripherals?
What might be related is if erase works we almost always get one rtc watch dog timer reset after the OTA completes and the new firmware has been running for 1-2 minutes then it runs fine.
Thanks