raspberrypi / pico-playground

BSD 3-Clause "New" or "Revised" License
438 stars 92 forks source link

Pico freezes due to hello_sleep.c and hello_dormant.c #18

Open ms1963 opened 3 years ago

ms1963 commented 3 years ago

Entering sleep/dormant mode will work a couple of times, but then the Pico gets frozen. There must be configurations which are not recovered after wake-up. Saving and then restoring the clock registers solves only some issues, but does not prevent the system from getting stuck. Reenabling the ROSC does not help either: rosc_write(&rosc_hw->ctrl, ROSC_CTRL_ENABLE_BITS);

RayNieport commented 2 years ago

I have the same problem. I can enter dormant mode a handful of times but then the Pico freezes up. Not sure what's causing this issue. I need to wake up and perform actions every few minutes but the majority of the time I need to be in dormant mode to conserve power since I am running off battery.