Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C3 returns wakeup cause that is for light sleep when leaving deep sleep? (IDFGH-8064) #9567

Closed
Kampi opened this issue Aug 16, 2022 · 1 comment
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@Kampi
Copy link
Contributor

Kampi commented Aug 16, 2022

Environment

  • Development Kit: esp32-c3-devkitm-1
  • Module or chip used: ESP32-C3
  • IDF version (run git describe --tags to find it): 4.4.1
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): 8.4.0+2021r2-patch3

Problem Description

ESP32-C3 wakes up from deep sleep by using a GPIO. esp_sleep_get_wakeup_cause returns 7 which stands for ESP_SLEEP_WAKEUP_GPIO which is documented as "light sleep only".

Is this a documentation issue or is this the wrong wakeup cause?

@espressif-bot espressif-bot added the Status: Opened Issue is new label Aug 16, 2022
@github-actions github-actions bot changed the title ESP32-C3 returns wakeup cause that is for light sleep when leaving deep sleep? ESP32-C3 returns wakeup cause that is for light sleep when leaving deep sleep? (IDFGH-8064) Aug 16, 2022
@ESP-Marius
Copy link
Collaborator

Hi,

You are right, the docs are wrong here. C3/C2 do support ESP_SLEEP_WAKEUP_GPIO from deep sleep (see SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP)

I'll update the docs to reflect this.

@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development Status: Reviewing Issue is being reviewed Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Status: Selected for Development Issue is selected for development Status: Reviewing Issue is being reviewed Resolution: NA Issue resolution is unavailable labels Aug 23, 2022
espressif-bot pushed a commit that referenced this issue Aug 26, 2022
…t sleep only

ESP_SLEEP_WAKEUP_GPIO is also a valid deep sleep wakeup cause on targets
with SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP

Closes #9567
espressif-bot pushed a commit that referenced this issue Sep 2, 2022
…t sleep only

ESP_SLEEP_WAKEUP_GPIO is also a valid deep sleep wakeup cause on targets
with SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP

Closes #9567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants