Software reset in light sleep mode
Posted: Sat Nov 14, 2020 10:05 am
I have observed that my program crashes in light sleep mode after calling
touch_pad_t touchPin=esp_sleep_get_touchpad_wakeup_status();
That does't happen in deep sleep mode.
Rreported error message:
"Wakeup caused by touchpad
assertion "ret == ESP_OK && "wakeup reason is RTC_TOUCH_TRIG_EN but SENS_TOUCH_MEAS_EN is zero"" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/sleep_modes.c", line 458, function: esp_sleep_get_touchpad_wakeup_status
abort() was called at PC 0x400d9ba3 on core 1"
Any idea,why that is happening?
see below the code causing the crash
touch_pad_t touchPin=esp_sleep_get_touchpad_wakeup_status();
That does't happen in deep sleep mode.
Rreported error message:
"Wakeup caused by touchpad
assertion "ret == ESP_OK && "wakeup reason is RTC_TOUCH_TRIG_EN but SENS_TOUCH_MEAS_EN is zero"" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/sleep_modes.c", line 458, function: esp_sleep_get_touchpad_wakeup_status
abort() was called at PC 0x400d9ba3 on core 1"
Any idea,why that is happening?
see below the code causing the crash