Skip to main content
Korporal
Associate III
February 28, 2019
Solved

Max stack frame size on STM32F769?

  • February 28, 2019
  • 2 replies
  • 1405 views

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).

This topic has been closed for replies.
Best answer by Tesla DeLorean

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.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 28, 2019

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.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Korporal
KorporalAuthor
Associate III
February 28, 2019

@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.