Search found 7 matches

by andrewandroid
Thu Sep 14, 2023 12:30 pm
Forum: ESP-IDF
Topic: ESP32C3: esp_sleep_get_wakeup_cause() not detecting wakup from IO
Replies: 2
Views: 2771

Re: ESP32C3: esp_sleep_get_wakeup_cause() not detecting wakup from IO

I also have this issue. I just posted details to this other thread with the same problem:

viewtopic.php?f=13&t=34236&p=120373#p120373
by andrewandroid
Thu Sep 14, 2023 12:24 pm
Forum: ESP-IDF
Topic: ESP32C3: esp_sleep_get_wakeup_cause() not detecting wakup from IO
Replies: 2
Views: 2771

Re: ESP32C3: esp_sleep_get_wakeup_cause() not detecting wakup from IO

I also have this issue. I just posted details to this other thread with the same problem:

viewtopic.php?f=13&t=34236&p=120373#p120373
by andrewandroid
Thu Sep 14, 2023 12:23 pm
Forum: ESP-IDF
Topic: ESP32-C3 deep sleep GPIO wakeup reason
Replies: 2
Views: 3464

Re: ESP32-C3 deep sleep GPIO wakeup reason

I have the same issue. I'm also using an ESP32-C3, and I get ESP_SLEEP_WAKEUP_UNDEFINED (i.e. 0) as the reason for waking after deep sleep, instead of ESP_SLEEP_WAKEUP_GPIO (i.e. 7) when I push a button to wake it from deep sleep. It does wake up from deep sleep, but gives the wrong reason. // In se...
by andrewandroid
Sat Dec 26, 2020 8:53 am
Forum: ESP-IDF
Topic: [Solved] Can RTC IO output state be retained in hibernation mode?
Replies: 4
Views: 10832

Re: Can RTC IO output state be retained in hibernation mode?

For RTC IOs you can use rtc_gpio_hold_en function. For digital IOs there is a RTC_CNTL_DG_PAD_FORCE_HOLD bit which forces all pads to hold their state. Hi ESP_Igrr, That sounds perfect! Could you please provide an example of how to set that bit on, for beginners like me? Pushing my luck, is there a...
by andrewandroid
Sat Dec 26, 2020 8:52 am
Forum: General Discussion
Topic: All GPIO pads do not hold logic level in Deep sleep
Replies: 2
Views: 6253

Re: All GPIO pads do not hold logic level in Deep sleep

Is there an equivalent comment in the Arduino IDE for ESP32? I'd love to set `RTC_CNTL_DG_PAD_FORCE_HOLD` to be on so that I can hold a non-RTC GPIO as HIGH while in deep sleep.

Or should I just bite the bullet and port everything over from Arduino IDE to ESP IDF?

Cheers
Andrew
by andrewandroid
Sat Dec 26, 2020 7:55 am
Forum: ESP-IDF
Topic: What is the state of a digital IO in deep sleep. E.g. GPIO17
Replies: 4
Views: 6089

Re: What is the state of a digital IO in deep sleep. E.g. GPIO17

Hey ESP_houwenxiang / woohooko

I think this is exactly what I'm looking for!!

Holding a non-RTC, GPIO pin's state while in deep sleep.

I know these posts are two years ago now, but did this feature end up getting implemented? I couldn't find it in the documentation.

Thanks so much!
Andrew
by andrewandroid
Sat Dec 26, 2020 7:53 am
Forum: General Discussion
Topic: Isolate GPIO (not RTC) during deep-sleep
Replies: 4
Views: 10835

Re: Isolate GPIO (not RTC) during deep-sleep

Hey davdav and ESP_houwenxiang Thanks for posting details. I have exactly the same problem, I believe. Did you get this working? Here's my setup: I have three non-RTC GPIO pins (16, 17, 18), and I want them to stay HIGH during deep sleep. I'm using Arduino IDE: ``` // Stop doing PWM. ledcDetachPin(1...