Relationship between PSoC Creator heap/stack and FreeRTOS heap/stack | Cypress Semiconductor
Relationship between PSoC Creator heap/stack and FreeRTOS heap/stack
I'm a bit confused on this one.
The PSoC Creator design-wide resources editor has system parameters for heap size and stack size. What exactly is stored in this heap? If I understand properly there isn't any dynamic allocation at all by default, right? Or is there?
Do I need to set it up so that my FreeRTOS heap size < the PSoC Creator heap size? I'm thinking no, because I think the FreeRTOS heap reservation just reserves another area entirely?
As far as the stack parameter is concerned, how does this interact with the FreeRTOS stack? Again, if I understand correctly, FreeRTOS allocates space for task stacks from its own heap when the task is created. (I'm pretty sure about this, because the stack size is dynamically supplied to the task creation function.) Does this mean that I can get away with a very small PSoC Creator stack size, because that stack is only used for initialization stuff and for the scheduler itself, and is disjoint from the actual task stacks?
Can anyone shed some light on this? I want to make sure I am not using lots of memory for nothing, but at the same time overflowing these types of limits can be a real pain to debug.