-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
RP2350 / Pico 2 machine.deepsleep results in crash #15623
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
Comments
As implemented on the rp2 port,
This is not the expected behavior of deepsleep. As per documentation (https://docs.micropython.org/en/latest/library/machine.html):
|
@felixdoerre - On the Pico 1, at least in my brief testing a couple days ago, deepsleep behaved the same and I didn't have to unplug/re-plug the Pico to bring it back up in Thonny. Just had to press 'Stop' and it would pick up the MicroPython prompt again. Separately, it sounds like deeper sleep states may be possible on Pico 2/RP2350, so maybe a feature request could be made (or at least a discussion) to try to figure out if it could be un-aliased to |
As commented by Mr. Geerlingguy, deepsleep() is not working with Raspberry Pi Pico 2 board. Anybody solved this problem? |
Seems the lowest power consumption can be achieved with 5V supplied to VSYS (link) The lowest power measurement I found was for a lithium battery 4.11V at 150.8uA link, it requires using a custom powman_example.c. Keep in mind, this will reset the CPU when it wakes up, though it appears the SDRAM is retained. Look at To summarize, in the words of peterharperuk (Peter Harper UK):
There's more discussion in this thread on the Raspberry Pi forums. |
As far as I understand that custom example of
to use it first. RP2350 doesn't require it normally, but now it is the only option to turn on flash. Secondly, need to patch boot2_w25q080.S PS. For Pico 2, for deep sleep, lots of power gets wasted due to high (60 uA) quiescent current of RT6150B. So that 150 uA figure, might be way better for different power supply, like RT5707 with sub uA quiescent current, and efficiency over 90% at 20+ uA. Pico 2 W might sleep with less power consumption than Pico 2, |
Port, board and/or hardware
Pico 2 / RP2350
MicroPython version
MicroPython v1.24.0-preview.201.g269a0e0e1 on 2024-08-09; Raspberry Pi Pico2 with RP2350
Reproduction
machine.deepsleep(5000)
in your codeExpected behaviour
Expected Pico 2 to enter
deepsleep
mode for 5 seconds, then continue to next bit of code.Observed behaviour
Upon reaching
deepsleep
, the LED on my Pico blinks when it reaches that part of the code, but Thonny's console outputs:Contents of
backend.log
after the Shell displays that error:Additional Information
Full code example:
On the original Pico,
deepsleep
was, I believe, an alias tolightsleep
. On Pico 2, it looks like there are deeper sleep states that may be implemented and an internal RTC that can be used to wake the chip... is it possible that either thedeepsleep
option could differ on the Pico 2, or should it just remain an alias tolightsleep
?Either way, the behavior here is different than
lightsleep
—which also breaks right now, see #15622.Code of Conduct
Yes, I agree
The text was updated successfully, but these errors were encountered: