Kernel time, timers, and using low power sleep modes

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
colin
Posts: 149
Joined: Thu Dec 22, 2011 7:44 pm

Kernel time, timers, and using low power sleep modes

Post by colin »

While waiting for a real tickless kernel like in ChibiOS/RT 3.0, what is a good way to achieve very low power consumption? I can put a "sleep" call in the idle thread, right? But since SYSTICK clock is stopped, all ChibiOS/RT virtual timers (VTs) used for timing, semaphore waits, thread timed sleep calls, and other stuff will not be aware that time has passed after waking up from low power mode. (By low power mode, I mean one in which only a few low power peripherals are active, including a very low power timer like an RTC, Freescale Kinetis LPTMR, AVR Timer2 in asynchronous mode, etc.)

Has anyone achieved such a feat with ChibiOS/RT in a project yet?

I was thinking of hacking on the chVTDoTickI() macro in ChibiOS/RT 2.x trunk to deal with decrementing the VT timers ticks by a value greater than one. And this looks like just what ChibiOS/RT 3.0 development branch is doing now.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Kernel time, timers, and using low power sleep modes

Post by Giovanni »

The tickless could be backported to 2.6, the timers handling is similar, but I don't have plans to do so because I need to keep the branch stable.

Giovanni
estutzenberger
Posts: 2
Joined: Mon Apr 07, 2014 11:07 pm

Re: Kernel time, timers, and using low power sleep modes

Post by estutzenberger »

Is anyone aware of the above being done by someone? I am interested in having a tickless idle mode for a low power application using Chibi, however, my project schedule does not align with the 3.0 release. For reference, we are planning to use the STM32L15x parts.

Best,

Eric
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Kernel time, timers, and using low power sleep modes

Post by Giovanni »

Hi,

As far I know no. The feature is still scheduled for 3.0.

Giovanni
Post Reply