Quality RTOS & Embedded Software

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




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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists