Hello,
I have a question about the GPIO wake up in the ESP32-C6 chip.
I used to have a ESP32-C3, which uses esp_deep_sleep_enable_gpio_wakeup() to enable certain GPIOs to wake up deep sleep.
But after checking the ESP32-C6 manual, I found that GPIOs can only wake up light sleep. Is esp_deep_sleep_enable_gpio_wakeup() removed in C6?
ESP32-C6 sleep manual:
https://docs.espressif.com/projects/esp ... modes.html
ESP32-C3 sleep manual:
https://docs.espressif.com/projects/esp ... modes.html
Could anyone confirm this? Any suggestion would be greatly appreciated.
Can ESP32-C6 use GPIO to wake up Deep Sleep?
Can ESP32-C6 use GPIO to wake up Deep Sleep?
- Attachments
-
- C6 manual.png (72.91 KiB) Viewed 5759 times
-
- C3 manual.png (39.45 KiB) Viewed 5759 times
Last edited by YeezB1601 on Mon Mar 04, 2024 11:07 am, edited 1 time in total.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
Not the answer you might be looking for, but I'm using esp_sleep_enable_ext1_wakeup() and that works fine on the C6.
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
Thanks but I still want to use GPIO to wake up DeepSleep.ESP_Sprite wrote: ↑Mon Mar 04, 2024 8:49 amNot the answer you might be looking for, but I'm using esp_sleep_enable_ext1_wakeup() and that works fine on the C6.
I noticed that External Wakeup can be used to wake DeepSleep with RTC GPIO, but I didn't find any description on the web about which pin of the ESP32 C6 can be multiplexed as RTC GPIO.
Can you make a suggestion?
The code reference only describe the API, but not mentioned about physical pins:
https://docs.espressif.com/projects/esp ... /gpio.html
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
See the datasheet, section 2.3.2. Long story short: GPIO0 to GPIO7 are RTC (LP) GPIOs.
-
- Posts: 828
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
Just an fyi here that maybe will keep someone else from wasting their time- the esp32-c6 ulp does not have access to the ADC peripheral.
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
Does anybody know what the LP Analog Peripheral is?
In the TRM there is the LP_ANA_PERI from Table 5-2, but that is not referenced anywhere else in the TRM.
also below that same table there is the note:
In the TRM there is the LP_ANA_PERI from Table 5-2, but that is not referenced anywhere else in the TRM.
also below that same table there is the note:
Though presumably it is conditioned on the active power domains?• LP CPU can access all peripherals listed in the table 5-2 except RISC-V Trace Encoder (TRACE), DEBUG ASSIST
(ASSIST_DEBUG) and Interrupt Priority Register (INTPRI).
-
- Posts: 828
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
There is no ADC (analog) peripheral accessible by the LP-core on a ESP32-C6.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
That is technically incorrect: the ESP32-C6 can access all peripherals except the ones quoted because it has full access to the same bus as the main processor. I'll ask if there is a more 'native' way that also works in deep sleep; I agree that esp-idf and the documentation don't seem to mention one.lbernstone wrote: ↑Tue Apr 02, 2024 5:29 pmThere is no ADC (analog) peripheral accessible by the LP-core on a ESP32-C6.
-
- Posts: 828
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?
It would make me very happy if you are correct, but https://github.com/espressif/esp-idf/issues/13422ESP_Sprite wrote: ↑Wed Apr 03, 2024 2:27 amThat is technically incorrect: the ESP32-C6 can access all peripherals except the ones quoted because it has full access to the same bus as the main processor. I'll ask if there is a more 'native' way that also works in deep sleep; I agree that esp-idf and the documentation don't seem to mention one.
Who is online
Users browsing this forum: No registered users and 140 guests