Cannot get wake handler to run
Posted: Mon Apr 22, 2019 9:53 pm
I have a project which puts the ESP32 into deep sleep. The ESP32 is woken up by a GPIO.
The code to get the ESP32 into deep sleep works correctly, and the ESP32 wakes up on GPIO, but no matter what I do, I cannot get the deep sleep handler to run.
My wake handler file is rtc_wake_stub.c, and in it I have a function with signature`void esp_wake_deep_sleep(void)` defined.
This function never runs on wakeup. The ESP boots directly to the application code with `rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)`
Any ideas?
The code to get the ESP32 into deep sleep works correctly, and the ESP32 wakes up on GPIO, but no matter what I do, I cannot get the deep sleep handler to run.
My wake handler file is rtc_wake_stub.c, and in it I have a function with signature`void esp_wake_deep_sleep(void)` defined.
This function never runs on wakeup. The ESP boots directly to the application code with `rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)`
Any ideas?