2019-02-28 09:44 AM
Does this processor have a max size limit on stack frames? (as opposed to max size of total stack). The stack frame size is the amount of stack space set aside when a function calls another function (this is mainly composed of local variables declared in the called function).
Solved! Go to Solution.
2019-02-28 09:56 AM
It does not. The scope really is how large any given memory region is, as the processor hard faults when you exceed that scope.
On things like KEIL the stack is on top of the heap which is on top of the statics, it is important to define the desired sizes in startup.s
With GNU/GCC the stack is frequently put at the top of RAM, and then the heap and stack are allowed to plough into each other to limit maximal usage.
2019-02-28 09:56 AM
It does not. The scope really is how large any given memory region is, as the processor hard faults when you exceed that scope.
On things like KEIL the stack is on top of the heap which is on top of the statics, it is important to define the desired sizes in startup.s
With GNU/GCC the stack is frequently put at the top of RAM, and then the heap and stack are allowed to plough into each other to limit maximal usage.
2019-02-28 09:58 AM
@Community member - OK thanks for that. I'm going to post another question, I'm seeing a behavioral change in a small test app that I'm playing with, this is most bizzare.