As the title states, I would like to know : a) how to set the stack depth, in a new project b) how to detect boundary violations of the stack.
Thanks for any answer
a) how to set the stack depth, in a new project
As big as you possibly can. Shrink only after you have measurements of stack consumption and a reliable estimate of their future movement.
b) how to detect boundary violations of the stack.
Put a signal value beyond the end of the stack, and regularly check if anyone trampled over it.
Hans
thanks for your response. In fact, I am looking for a more practical response regarding in which part of the Keil compiler I may set stack depth. I am sure you can help. Raul