On 2007-07-10, Bevan Weiss <[email protected]> wrote:
> Since increased optimisation levels remedy the push/pop excess
> I queried previously I've left them and continued on. The
> problem that I'm running into now is the microcontroller
> resetting when it reaches the end of a called function. I
> believe this is due to the stack not being properly
> initialised, does this seem justified?
It's more likely that the stack has overflowed or been
corrupted.
> I can see that there is a collection of crtXXXX.o files
> provided in mspgcc. Is it likely that the source code for the
> MSP430F2234 crt startup could be incorrect?
No.
> Perhaps it's more likely that I've got a configuration option
> wrong or similar.. any ideas would be greatly appreciated, I'm
> starting to run quite a bit behind in this project.
Check to see if you're running out of stack space before you go
hunting for toolchain bugs.
--
Grant Edwards grante Yow! If elected, Zippy
at pledges to each and every
visi.com American a 55-year-old
houseboy ...