QUERY · ISSUE
Bug: Deep Sleep Wake-up Issue on ESP32-C3
bugport-esp32
Port, board and/or hardware
ESP32 PORT, ESP32-C3 Super Mini
MicroPython version
Micropython 1.24.1
Reproduction
Title: Bug: Deep Sleep Wake-up Issue on ESP32-C3
Description:
I am experiencing an issue with the deep sleep wake-up functionality on the ESP32-C3 using MicroPython. The device does not wake up as expected when a GPIO pin changes from low to high.
Steps to Reproduce:
- Flash the latest version of MicroPython on an ESP32-C3.
- Use the following code to enter deep sleep and wake up on a GPIO pin change:
import machine import esp32 import time WAKEUP_GPIO_PIN = 0 LED_GPIO_PIN = 8 pin = machine.Pin(WAKEUP_GPIO_PIN, machine.Pin.IN, machine.Pin.PULL_UP) esp32.wake_on_ext0(pin=pin, level=esp32.WAKEUP_ANY_HIGH) wake_reason = machine.wake_reason() if wake_reason == machine.WAKEUP_EXT0: print("Woke up from deep sleep") machine.Pin(LED_GPIO_PIN, machine.Pin.OUT).value(1) time.sleep(1) machine.Pin(LED_GPIO_PIN, machine.Pin.OUT).value(0) else: print("Entering deep sleep") time.sleep(2) machine.deepsleep()
Expected behaviour
Wake up with change on GPIO0.
Observed behaviour
Does not wake up.
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
CANDIDATE · ISSUE
lightsleep doesn't work with v1.24.1 on ESP32-S2 (S2FN4R2)
bugport-esp32needs-info
Port, board and/or hardware
ESP32-S2, with ESP32-S3 it works!
MicroPython version
MPY v1.24.1 and latest dirty version, ESP32-S2FN4R2,
Reproduction
tested with touch and timeout for wake-up source, e.g. lightsleep(3000)
Expected behaviour
No response
Observed behaviour
no wake-up
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree