ESP32-C6: Not able to connect to wifi after deep sleep
Posted: Tue Nov 28, 2023 9:47 am
If I call esp_deep_sleep_start() to put the ESP32-C6 to sleep the wifi won't reconnect after the processor wakes up again.
connect wifi
connect to cloud
wait
disconnect cloud
stop wifi
esp_sleep_enable_timer_wakeup(...)
esp_deep_sleep_start()
chip restarts after wake up
try to connect wifi fails
check wake reason, if equal 4 => try esp_restart()
connecting to wifi still fails
If I reset the chip by starting Monitor the chip connects to wifi again. (My com port is just connected to USB_DN and USB_DP so not connected to EN pin.)
connect wifi
connect to cloud
wait
disconnect cloud
stop wifi
esp_sleep_enable_timer_wakeup(...)
esp_deep_sleep_start()
chip restarts after wake up
try to connect wifi fails
check wake reason, if equal 4 => try esp_restart()
connecting to wifi still fails
If I reset the chip by starting Monitor the chip connects to wifi again. (My com port is just connected to USB_DN and USB_DP so not connected to EN pin.)