We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi ,
This is the first time i am writing to this forum. I am currently using Phillips based LPC2138 chip which has got a flash size of 512KB and data memory size of 32KB .
I have gone through the data sheet of LPC2132/2138 but i have failed to find the exact size of STACK for maintaining the address of local variables or address of the functions.
I have a problem of stack overflow which is causing my application to fail in certain instances.
If anyone has faced this sort of problem , kindly mail me back.
Or if possible can anyone tell the fundamentals of how the stack is maintained on a micrcontroller. Any help in this regards will be appreciated by me.
Regards Amit
As far as I know, the stack is a part of the RAM that is reserved by the linker. So it is possible to set its size in the startup code that is generated by keil. See the "definitions for system and user stack" in the wizzad of your startup code.