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
Hans, Pier Thanks for your answers, that works. Raul
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
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.
View all questions in Keil forum