we have aproblem in stack of MC68HC908LK24. we have reached nearly RAM size of controller and we have stack size about 0x80. in some functions while they return back to calling function the controller resets due to illegal address or illegal opcode.when we remove many variables from ram and increase stack size these problems disappear.the compiler doesn't give any warning about reaching stack size problem.we use codeworrior version 3.0
so what can i do to save stack size at 0x80 and don't have problems?
and i want to roughly calculate guaranteed minimum stack size of our application.