Can ESP32-C6 use GPIO to wake up Deep Sleep?

YeezB1601
Posts: 2
Joined: Mon Mar 04, 2024 6:59 am

Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby YeezB1601 » Mon Mar 04, 2024 7:11 am

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.
Attachments
C6 manual.png
C6 manual.png (72.91 KiB) Viewed 6004 times
C3 manual.png
C3 manual.png (39.45 KiB) Viewed 6004 times
Last edited by YeezB1601 on Mon Mar 04, 2024 11:07 am, edited 1 time in total.

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby ESP_Sprite » Mon Mar 04, 2024 8:49 am

Not the answer you might be looking for, but I'm using esp_sleep_enable_ext1_wakeup() and that works fine on the C6.

YeezB1601
Posts: 2
Joined: Mon Mar 04, 2024 6:59 am

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby YeezB1601 » Fri Mar 22, 2024 2:48 am

ESP_Sprite wrote:
Mon Mar 04, 2024 8:49 am
Not the answer you might be looking for, but I'm using esp_sleep_enable_ext1_wakeup() and that works fine on the C6.
Thanks but I still want to use GPIO to wake up DeepSleep.
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

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby ESP_Sprite » Fri Mar 22, 2024 11:46 am

YeezB1601 wrote:
Fri Mar 22, 2024 2:48 am
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?
See the datasheet, section 2.3.2. Long story short: GPIO0 to GPIO7 are RTC (LP) GPIOs.

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby lbernstone » Fri Mar 22, 2024 7:55 pm

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.

**txf**
Posts: 12
Joined: Thu Apr 21, 2022 3:03 pm

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby **txf** » Tue Apr 02, 2024 9:39 am

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:
• 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).
Though presumably it is conditioned on the active power domains?

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby lbernstone » Tue Apr 02, 2024 5:29 pm

There is no ADC (analog) peripheral accessible by the LP-core on a ESP32-C6.

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby ESP_Sprite » Wed Apr 03, 2024 2:27 am

lbernstone wrote:
Tue Apr 02, 2024 5:29 pm
There is no ADC (analog) peripheral accessible by the LP-core on a ESP32-C6.
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
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: Can ESP32-C6 use GPIO to wake up Deep Sleep?

Postby lbernstone » Wed Apr 03, 2024 3:06 am

ESP_Sprite wrote:
Wed Apr 03, 2024 2:27 am
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.
It would make me very happy if you are correct, but https://github.com/espressif/esp-idf/issues/13422

Who is online

Users browsing this forum: Bing [Bot] and 25 guests