We can set the size of the stack in the linker file in Codewarrior S12x. Let us say the RAM is from 0x2000 to 0x2100, if the stack size is 0x100. The first variable will be stored at 0x2100 and keeps decreasing. But due to my wrong calculations the the stack exceeds beyond 0x100. There is no RAM below 0x2000 then how does the microcontroller handle this. please explain me.
Thanks in advance.