Stack

I’m using the IAR compiler and I get a stack usage warning (>90%) even without calling to much nested functions. The default size is 80 bytes, maybe is too few, what is the normal value?

It seems that when you pause the execution the stack window shows the peak usage, isn’t it?

Do you maybe have some large stack-allocated variables?

stack-allocated? the only way I know to allocate variables in stack is as parameters, and I use to pass pointers.

No, I don’t think so… but I’ll go throw step by step.

Anyway 80 bytes is not a value too little?

Local variables in functions are also allocated on the stack (like parameters are).