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

RP2040: Deep sleep until alarm without reset #8771

Open
rgov opened this issue Dec 29, 2023 · 2 comments
Open

RP2040: Deep sleep until alarm without reset #8771

rgov opened this issue Dec 29, 2023 · 2 comments
Labels
Milestone

Comments

@rgov
Copy link

rgov commented Dec 29, 2023

Since the RP2040 preserves RAM when in the dormant (deep sleep) state, is it not possible to resume the program after an alarm, without resetting the board? This would make it significantly easier to preserve state while dropping into lower power modes.

@ghubcoder's blog post describes how to recover from the dormant state after an RTC alarm. This was implemented for MicroPython in modpicosleep.c (accompanying blog post).

@dhalbert
Copy link
Collaborator

I think we could do this for "light sleep", and make light sleep be a deeper sleep.

@bablokb
Copy link

bablokb commented Feb 4, 2025

@rgov: you could test the artifact of PR #10023. This will use dormant mode without reset for lightsleep like you suggested. According to my measurements, we are now in the same range as the blog-post claims for MicroPython.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants