Quality RTOS & Embedded Software

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


Loading

Stack Size !

Posted by Sachin Bhujbal on January 9, 2009
Dear All,


I am working on STR9-Angilia-FreeRTOs Project.
I am creating 9 Tasks having same priority( 5 ). configMAX_PRIORITY is 8.
Stack size are
1) Stack sizes of 4 Tasks are 100.
2) Stack sizes of other 5 Tasks are 400. ( 4 of these Tasks are multiple instances of one Task )

But one of the above Task which having 100 Stack Size is not getting created due to stack size.

As per site documentation higher the value of configMAX_PRIORITY more RAM will
be required by Kernel. Therefore I kept priorities of All Tasks to 1 and configMAX_PRIORITY set to 2. But found same result.

I don't know why stack size is creating problem if STR9 is having 96K RAM ?
How should I calculate Stack sizes ?
I know that we have to add sizes all variables used in Task & in related functions.
Am I right or tell me how to calculate it exactly ?

Please help me in this issue.

Thanks,

Sachin D. Bhujbal

RE: Stack Size !

Posted by Dave on January 9, 2009
If you are using heap_1.c or heap_2.c then increase the value of configTOTAL_HEAP_SPACE in FreeRTOSConfig.h.

RE: Stack Size !

Posted by Sachin Bhujbal on January 9, 2009
Thanks Dave,
Problem is solved after increasing Heap Size.,
I read it in document that it is ram size available to Kernel.
But can You explain me in detail about Heap & its use ?

Please answer !

RE: Stack Size !

Posted by Dave on January 9, 2009
Did you read this
http://www.freertos.org/a00111.html ?


[ 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