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

ports/esp32: Fix ESP32-C3 deep/light sleep wake on GPIOs support. #8995

Closed
wants to merge 1 commit into from

Conversation

chihosin
Copy link

Fixed the issue that machine wake up on GPIOs when deep/light sleep failed on esp32c3
after compiling firmware with ESP-IDF v4.4 and higher versions.

Tested with this code passed:

>>> import esp32
>>> import machine
>>> esp32.wake_on_pins([machine.Pin(4)], esp32.WAKEUP_ALL_LOW)
>>> machine.deepsleep()

# Let the GPIO4 low.

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x5 (DSLEEP),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0xe3c
load:0x403ce000,len:0x6f4
load:0x403d0000,len:0x28d8
entry 0x403ce000
MicroPython 963e599ec-dirty on 2022-07-31; ESP32C3 module with ESP32C3
Type "help()" for more information.

>>> 

@pbdaran
Copy link

pbdaran commented Jun 23, 2023

Do the changed files support to define GPIO1 as wakeup pin for deepsleep?

@projectgus
Copy link
Contributor

This is an automated heads-up that we've just merged a Pull Request
that removes the STATIC macro from MicroPython's C API.

See #13763

A search suggests this PR might apply the STATIC macro to some C code. If it
does, then next time you rebase the PR (or merge from master) then you should
please replace all the STATIC keywords with static.

Although this is an automated message, feel free to @-reply to me directly if
you have any questions about this.

@chihosin chihosin closed this by deleting the head repository Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants