Quality RTOS & Embedded Software

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


Loading

Idle task hook for low power application

Posted by Samuel on October 20, 2011
I have a power consumption critical application, as long as in the idle task the MCU will enter into low power mode which the oscillator will stop to save current, the real time clock will wakeup at a certain period of time to continue other task.

My question is: the MCU freeze in idle task, will this cause problem for RTOS running?

Samuel

RE: Idle task hook for low power application

Posted by araj on October 20, 2011
I think the powerdown operation sequence that you might be doing could create problems during wakeup if the powerup sequence is not performed correctly. A task switch immediately after wake moves the execution to another priority task, and this is can
interrupt the idle hook that does the powerup sequence..just my 2 cents :-)

RE: Idle task hook for low power application

Posted by Dave on October 20, 2011
It is very common, maybe even normal, to put the micro into low power in the idle hook. The issue is that the RTOS needs to keep track of time, so needs to wake up on tick interrupts. You can do all sorts of fancy things to slow the tick frequency before sleeping, to reduce the frequency low power mode is exited. A more complex low power operation is to go tickless, there is a thesis on tickless FreeRTOS in the FreeRTOS interactive site

http://interactive.freertos.org/entries/20291196-energy-optimized-port-of-freertos-6-for-efm32

Take care about how long your oscillator takes to start up and settle.

RE: Idle task hook for low power application

Posted by Samuel on October 21, 2011
That is great idea!


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner