8000 NodeMCU v1.0 stuck at deep sleep rtc wakeup · Issue #4390 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
NodeMCU v1.0 stuck at deep sleep rtc wakeup #4390
Closed
@misan128

Description

@misan128

Following the docs i tried the deep sleep example

import machine

# configure RTC.ALARM0 to be able to wake the device
rtc = machine.RTC()
rtc.irq(trigger=rtc.ALARM0, wake=machine.DEEPSLEEP)

# check if the device woke from a deep sleep
if machine.reset_cause() == machine.DEEPSLEEP_RESET:
    print('woke from a deep sleep')

# set RTC.ALARM0 to fire after 10 seconds (waking the device)
rtc.alarm(rtc.ALARM0, 10000)

# put the device to sleep
machine.deepsleep()

but when it wakes up it gets stuck in booting and doesn't let me erase the flash memmory or anything cause everytime i reset the device it keeps "waking up" from deep sleep and it enters to it once again.

I have tried the esptool.py to erase memory but it doesn't find the device with the usbserial converter nor usb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0