High current consumption in sleep, Why ?
#2
Hi,


I do not have the devices/knowledge to measure power consumption but I noticed that the debug peripheral consumes a lot of power. When I measured the battery life, my pinetime would last for less than 24h with the debug peripheral enabled, and nearly 7 days when it was disabled.

How to disable it? From my research, it is not possible to disable the debug peripheral from the code. The only way is to disable it using your debugger or by powering off/on the cpu.
This might be the reason why your measure less current on your standalone cpu : maybe you powered it off and then on.

Another think you can check : is the cpu really in sleep mode? In my code, FreeRTOS calls the instruction _WFE() (wait for event) to put the cpu to sleep, and it'll automatically wake up if an interrupt occurs. FreeRTOS configures a timer to wake the cpu up the next time a task must execute, and I had to ensure that all my tasks are actually blocking (on a event queue, for example) so that the cpu is put to sleep for a long time.

I wrote some instruction about this on the wiki : https://wiki.pine64.org/index.php/PineTi...oftware.3F
Working on InfiniTime, the FOSS firmware for the PineTime: https://github.com/InfiniTimeOrg/InfiniTime

Mastodon : https://mastodon.codingfield.com/@JF
Twitter : https://twitter.com/codingfield
Matrix : @JF002:matrix.org


Messages In This Thread
RE: High current consumption in sleep, Why ? - by JF002 - 05-02-2020, 03:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PineTime Sleep Tracking any_mouse 12 12,758 07-10-2023, 05:41 PM
Last Post: davidair

Forum Jump:


Users browsing this thread: 1 Guest(s)