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
  • Wrong.

    Stack is stored in RAM.
    Heap is stored in RAM.
    Read/Write variables (global, local and parameters) are stored in RAM.
    ...

    A program may use the CRTL (C Runtime Library) heap functions for memory allocation.
    Or a program may use own code. And that own code may not use any heap declared in the startup file but instead make use of one or more large array variables.

    Read this, regarding memory allocations in FreeRTOS.

Reply
  • Wrong.

    Stack is stored in RAM.
    Heap is stored in RAM.
    Read/Write variables (global, local and parameters) are stored in RAM.
    ...

    A program may use the CRTL (C Runtime Library) heap functions for memory allocation.
    Or a program may use own code. And that own code may not use any heap declared in the startup file but instead make use of one or more large array variables.

    Read this, regarding memory allocations in FreeRTOS.

Children
No data