I have a project which runs on MC9S08DZ60. This MCU has 4Kb of RAM.
In my current phase of project, my stack size is 0x700 bytes.
I increment the stack size when I see bad behavior of the sw (PC goes to wrong location/variables values are changed).
I hardly have nested function calls. I noticed that I increase stack size if I add few function calls/new features. Why is the reason for
increasing the stack size if functions nested calls are 2-3 levels?