Open JVKran opened 3 months ago
This fix is not for esp32s3, could you describe the detailed phenomenon when the error occurs?
We had an issue with application logic which didn't manage the case when there wasn't a wifi connection, but we also hadn't fired up the AP yet. This resulted in the Wi-Fi stack not being deinitialized when entering deep-sleep. Sometimes, deep-sleep wasn't entered but the main-loop appeared like it was no longer running. Some other tasks in the background were still active. The Wi-Fi connection sometimes was also still active.
Some other tasks in the background were still active. The Wi-Fi connection sometimes was also still active.
This situation should not happen. The software will ensure that the process of entering sleep is single-threaded. The core requesting sleep will enter the critical section and stop other cores, and then prepare for sleep. Even if entering sleep fails, esp_deep_sleep_start
function will not return but trigger the watchdog.
Answers checklist.
General issue report
How likely would it be that the fixes listed over here also apply to the ESP32-S3? We're currently having issues where we think the Wi-Fi stack fails to deinitialize (due to some reason) which is blocking the ESP32-S3 from entering deep-sleep. We've now updated to V5.1.4 (i.c.w. ESP-ADF V2.6) and are going to test if this doesn't happen anymore.