FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2016 Threads]
Hi,
Can anyone please give the basics of task's Stack size calculations ?
As per the baics of Stack & context switching , Context gets saved in Stack before executing high prioity tasks.
As per my understanding , Context means CPU registers.
But in any Microcntroller number of CPU registrs are limited for eg. for PIC32MX Coprocessor 0 has max 32 registers outof which only 13 are in used ( excluding reserved resisters ) .
So for context switching / saving we need only ~13 x4 = ~52 bytes of RAM .
Then why we need to allocate much higher RAM for Stack I task creation ?
Thanks,
Gaurav
See the following FAQ item:
http://www.freertos.org/FAQMem.html#StackSize
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.