
15 Jan
2007
15 Jan
'07
9:47 a.m.
Hi all. I posted a mail describing a problem I have with stack pointer on a board with MPC8541. I figured out I gave a complicated description for a simple problem, so here it is rephrased: I get the stack pointer corrupted when returning from function call on the first functions (running in flash, L1 cache used for stack). for example, in start.S: bl foo1(), when foo1() is: void foo1() { foo2(); } void foo2() { foo3(); } The return address from foo2() is some random crap.
Any ideas what could be the reason? Thanks, Michael