lightsleep and 2 processors #14020
Replies: 2 comments 1 reply
-
The implementation of lightsleep() affects the clocks. It stops some clocks and slows down others. So yes, lightsleep affects both cores. |
Beta Was this translation helpful? Give feedback.
-
For reference; this is code that microPython uses to enter Basically it converts each clock to use the 'raw' XTAL frequency, shuts down the PLLs, and then sets only I started looking at this, as like you my code runs on both cores. But I also do a LOT of work in the PIO blocks, which have their own clocks (slaved from SYS_CLK). For me there are significant chunks of time where my CPU code could be in light sleep, and the PIO left running... I can see how 'we' might make some changes to this code and plan to investigate when this really saves me any power (as running from battery) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using both processors on an RP Pico. One reads just reads from a UART and the other manages everything. If I use machine.lightsleep in one process does it cause both processors to sleep or only one?
Beta Was this translation helpful? Give feedback.
All reactions