Quality RTOS & Embedded Software

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


Loading

tasks

Posted by Braun on January 5, 2012
Hello,

I work in the
Now I want to perform some task to save energy.
The tasks have been created from a different task.
The craeter Task have the priority 2.He goes after he create the task in the state suspend.
The energy-saving tasks are first priority. I let them wake up with a RTC interrupt. After that, the task generator is placed in the ready state.

Energy save Task:

rtc_config();
rtc(RTC_COUNT_BETWEEN_WAKEUP);
EMU_EnterEM2(false);
vTaskResume( xHandle );

-- This will not run. Why?

other solution:
Energy save Task:
rtc_config();
RTC_Interrupt = 0;
rtc(RTC_COUNT_BETWEEN_WAKEUP);
do
{
EMU_EnterEM2(false);
}while(RTC_Interrupt == 0);
vTaskResume( xHandle );

this runs, because the Task is waiting

Does anyone have an explanation?

RE: tasks

Posted by Richard on January 5, 2012
Sorry, I'm not following your code or your intention. I'm guessing you are using an EFM32 part - in which case you might get something from the following contributed code and documentation:
http://interactive.freertos.org/entries/20291196-energy-optimized-port-of-freertos-6-for-efm32

Regards.


[ 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