CreateStatic & heap allocation problem
Hello,
After creation of a task or queue with createstatic, I verify my heap free space but I found that it still the same as I define it in freertosconfig.h ?
I’m using heap 1 and I set the static allocation to 1 and freertos v 9.00
So could you tell me where those tasks are created exacetly ?
CreateStatic & heap allocation problem
If you use the ‘CreateStatic’ version then you are explicitly using
statically allocated memory, by which I mean, memory allocated by the
compiler at compile time. That is distinct from dynamically allocated
memory, which is allocated from the heap at run time.
See the description of the puxStackBuffer and pxTaskBuffer parameters on
the following documentation page:
http://www.freertos.org/xTaskCreateStatic.html