Quality RTOS & Embedded Software

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


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 ]    [ 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