This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

8051 - compile-time stack - is stack theoretically overflow possible ?

Hi,

From the following  link  I have understood the compiler analyses the program and sets the stack size for the 8051. I am seeing a stack overlow when one ISR interrupts a lower priority ISR. If the compiler  analyses the program and sets the stack, to a size it deems adequate, then how can it overflow ? I am using a 8051 and a Keil compiler.

Any help would be appreciated.

Thanks,

Rochus