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] [April 2007 Threads] Stack or Heap or something elsePosted by Torben on April 25, 2007 Hi!
I want to use a char[2000] in a task. Now I am wondering if I have to set the stack size or the heap size +2000, so there are no memory problems.
Another question: Is there a possibility to see the heap address?
Thx!
RE: Stack or Heap or something elsePosted by Richard on April 25, 2007 If you really need the array to be on the stack then the stack size will have to be increased to accommodate it. If only one task is going to access the array, or there is some sort of mutual exclusion mechanism to ensure consistent access, then the array can be declared static - which will prevent it being allocated on the stack.
Regards.
RE: Stack or Heap or something elsePosted by Torben on April 25, 2007 Thx for your answer. I am now using the array as a global array in a task which means it does not occupy stack or heap space, so everything should be fine.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|