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] [March 2013 Threads] Sizing the main and task stacksPosted by Cem on March 4, 2013 Hi
I am wondering how to correctly size stacks of an application with several tasks running. Is there any relation in between the main stack and the task stacks? How much main stack (defined in the linker) do the tasks use?
Finally, is there any static analysis tool which calculates the worst case stack depth required by the application?
Thanks in advance. Cem
RE: Sizing the main and task stacksPosted by Richard on March 4, 2013 See: http://www.freertos.org/FAQMem.html#RAMAlloc1 http://www.freertos.org/FAQMem.html#StackSize
[I just made a few changes to these pages as they are really old, so refresh if you have viewed them recently to ensure you are not viewing the cached version]
There is no tool to pre-calculate the stack usage, but facilities exist in the kernel to allow you to detect overflows and tune the stack usage.
The state viewer debugger plug-ins will also show you the high water mark use of each task.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|