Always get 0 pins as ext1 wakeup source from deep sleep.
Posted: Sun Jul 15, 2018 7:28 pm
Hello,
I am configuring 2 pins (GPIO32,33) as ext1 wakeup source from deep sleep with mode = ALL_LOW (i.e wakeup when both pins are LOW), the chip wakes up as expected when the configured pins are both LOW, but I have a problem I always get 0 as a return from esp_ext1_wakeup_status() trying to know which one caused the wakeup or even if both did.
I know that this function returns 0 when the wakeup reason is any thing other than DeepSleep , but I always have the wakeup cause as ESP_SLEEP_WAKEUP_EXT1 as returned by this function esp_sleep_get_wakeup_cause and DEEPSLEEP_RESET as return from this function rtc_get_reset_reason(0)
I am setting the "Delay for deep sleep stub" option = 2000, I even increased it to 5000
I don't have this problem when setting wakeup mode to "ANY_HIGH".
I am configuring 2 pins (GPIO32,33) as ext1 wakeup source from deep sleep with mode = ALL_LOW (i.e wakeup when both pins are LOW), the chip wakes up as expected when the configured pins are both LOW, but I have a problem I always get 0 as a return from esp_ext1_wakeup_status() trying to know which one caused the wakeup or even if both did.
I know that this function returns 0 when the wakeup reason is any thing other than DeepSleep , but I always have the wakeup cause as ESP_SLEEP_WAKEUP_EXT1 as returned by this function esp_sleep_get_wakeup_cause and DEEPSLEEP_RESET as return from this function rtc_get_reset_reason(0)
I am setting the "Delay for deep sleep stub" option = 2000, I even increased it to 5000
I don't have this problem when setting wakeup mode to "ANY_HIGH".