Quality RTOS & Embedded Software

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




Loading

ATmega1284P Timer task not start when more than 5 task are running

Posted by ppeluffo on May 29, 2015

On a ATmega1284P ( 16Kb Ram) I have a program with 5 task running OK. I use FreeRtos 8.2.1 timers and compile with GCC. All 5 task use only 3Kb Ram. When I define a new task, the timer task do no start any more. I'm using heap.3. How many tasks are supposed to run in this arquitecture and what should I do to add more tasks. Thanks.


ATmega1284P Timer task not start when more than 5 task are running

Posted by rtel on May 29, 2015

You can create tasks until you run out of RAM. It does not sound like you have run out of RAM, but have probably run out of heap. If you are using heap3 then the mount of heap you have is defined by the linker, as heap3 just wraps the malloc() and free() provided by your compiler. If you increase the size of the heap provided by your compiler you will probably be able to create more tasks.

http://www.freertos.org/a00111.html

Regards.


[ 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