Skip to content

Update pico_sleep examples #48

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

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

peterharperuk
Copy link
Contributor

Adds examples that sleep via an alarm or via an AON timer Adds dormant examples that wake on an AON timer or GPIO Fixed to work for RP2040 and RP2350

Adds examples that sleep via an alarm or via an AON timer
Adds dormant examples that wake on an AON timer or GPIO
Fixed to work for RP2040 and RP2350
@ullibak
Copy link

ullibak commented Nov 6, 2024

It would be nice if there could be an example that shows how to direct the code execution to certain routines after wake-up from a low power state i.e. not to start at main(). This should be possible using POWMAN boot vector described in section 5.2.3 in the datasheet.

@peterharperuk
Copy link
Contributor Author

powman is a different API. There are some simple examples here https://github.com/peterharperuk/pico-examples/tree/powman
Restarting into a ram function is doable but then what? Your hardware was switched off so it all needs to be reset. So you're limited in what you can do and you may as well just run main.

@peterharperuk peterharperuk marked this pull request as ready for review November 7, 2024 19:20
@peterharperuk
Copy link
Contributor Author

I'm going to merge this...

@peterharperuk peterharperuk merged commit 3b2267d into raspberrypi:master Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants