Measure times spent in run/sleep/deep sleep modes on STM32 boards #4760
Replies: 1 comment
-
Posted at 2019-03-05 by @gfwilliams There isn't a way to do it at the moment - it wouldn't be ideal because you'd have to use the RTC which is only accurate to 1/32768th of a second, but I know what you mean - it's better than nothing. Right now I'd say it's best to use setBusyIndicator/setSleepIndicator and an oscilloscope.
What do you mean? Like issues waking up to respond to serial data? Posted at 2019-03-05 by asez73 Well, in some cases, at wake up some data can be lost due to the time it takes to re setup the peripherals links (usarts, spi...). That's from deep sleep. Posted at 2019-03-14 by asez73 Hi, So I connected a Pico to an Original Espruino and tried to monitor the Original Espruino from the Pico. The code on the Originla Espruino just includes
The code on the Pico is
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-03-04 by asez73
Hi,
The title says it all: Is there any hope to get, at run time, the various instants at which all the run/sleep/deep sleep modes were entered by the interpreter? Cumulated times spents in each mode would be a way to quantify easily the power consumption...
Ok, (re) found setBusyIndicator which should show when running and not sleeping: I have to test that...
Aside of time measurements, it would also give an idea of the eventuals problems of lost data when getting out of deep sleep mode.
Thanks for your attention.
Beta Was this translation helpful? Give feedback.
All reactions