Quality RTOS & Embedded Software

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




Loading

Creating tasks within tasks

Posted by ragesh on February 14, 2012
I have taken the lpc2148 demo code provided by J.C.Wren and was modifying it to add one more command processing task to it.This task I am creating before the scheduler starts.Now from this task I need to create another task which is not getting spawned.Is there any limitation in FreeRTOS for doing this?

RE: Creating tasks within tasks

Posted by Dave on February 14, 2012
You have probably just run out of FreeRTOS heap. Try increasing configTOTAL_HEAP_SIZE in FreeRTOSConfig.h. If you can't link your application after increasing the heap you will have to optimize your RAM usage instead by reducing stack sizes, combining tasks, looking for other RAM savings.

RE: Creating tasks within tasks

Posted by ragesh on February 16, 2012
Thanks for the quick response. I verified that I have not run out of FreeRTOS heap. Meanwhile, when I removed the optimization in the Makefile(it wa O3), the code behaves correctly. Still could not figure out what exactly was going wrong


[ 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