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

Stack Pointer Initialization

We are facing a problem with keil uv3.7, the problem is like this

we are using analog devices uc ADuC7026 in our target board and we are using the its internal prom,ram memories.

we have slightly changed the startup code to maintain the stack pointer at 0x00011fb0 in user mode, but when pc is coming to first line of main function code the sp is showing 0x00010a00 and when ever any floating point multiplication instruction is there, then it is calling a subroutine and there it is storing all the register to the stack, but there our some of the variables are also stored and these variable values are getting changed because of the push operations. we want to configure the sp to 0x00011fb0 so that these kind of overlap problems should not occur.

0