This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stack heap initialization

Dear Sir

I don't uderstand the meaning of stack size in the startup assembler code (stm32),what is for ?
I have some confusion because the file is talking about stack tailor :

Amount of memory (in bytes) allocated for Stack Tailor this value to your application needs Stack Configuration

In the case we have FreeRTOS running on ,where the memory of freertos is allocated ,it is depending on the stack tailor size?

Same questions about the heap size(in the startup file)

Thank you

Parents
  • Here is what I can understand:

    1-
    RAM=Stack+heap
    So in the startup file we reserve space for stack and heap.
    then freertos reserve his own stack but this time where this is done in the stack part of the RAM or the heap?
    2-

    RAM=Stack+Heap+memory for freertos

    so in this case is logic for me.

    So what is a stack processor in this case?

    Which scenario is correct?

Reply
  • Here is what I can understand:

    1-
    RAM=Stack+heap
    So in the startup file we reserve space for stack and heap.
    then freertos reserve his own stack but this time where this is done in the stack part of the RAM or the heap?
    2-

    RAM=Stack+Heap+memory for freertos

    so in this case is logic for me.

    So what is a stack processor in this case?

    Which scenario is correct?

Children