Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Non Tickless Idle low power state

Posted by richarddamon on July 10, 2017

Many processors have an instruction like the Arm WFI (Wait for Interrupt) that is basically a free reduce power instruction. It doesn't save as much power as the sort of thing used in tickless idle, but doesn't have some of the issues of the deeper sleep, since the clocks keep running at a global state, it just stops the processor, and thus reduces the power draw of the processor.

Typically, I have implemented using this instruction via the IdleHook, having it execute the WFI like instruction. When looking at implementing a Tickless Idle mode, I realize that this has the issue of possibly delaying, and perhaps preventing, the entry into Tickless Idle, as the Idle Hook is called unconditionally (if enabled) jus before testing if we can enter Tickless Idle, so the WFI will delay till the next tick. Totally omitting the instruction may raise power draw as it we are going to do something in a tick or two, tickless idle will be blocked, while this would seem to be a good opertunity to use something like WFI.

What would seem useful would be for the port layer to optionally define such a lower power mode, similar to the way it defines an entry to tickless idle, and then add code to the idle task to call this in the following conditions:

1) configIDLESHOULDYIELD == 0, if it isn't then the user may have their own idle level task that can use the processor tine. 2) Either tickless idle is not enabled, or the tickless idle code has determined the processor will be needed too soon to be worth going into tickless idle.

Does this make sense as an idea for a feature request? Figured worth discussion before making a formal featuure request, or perhaps I missed another way to do this already.


Non Tickless Idle low power state

Posted by rtel on July 10, 2017

Yes, please add a feature request ticket in SourceForge.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS