[U-Boot-Users] examples programs

Dave.Stoddart at aculab.com Dave.Stoddart at aculab.com
Fri Aug 15 11:13:55 CEST 2003


Hi Folks,

I am using U-Boot 0.4.0 with an MPC8245 processor with 64MBytes of SDRAM.
The hardware appears to work fine, as we can load / run U-Boot and then run
Embedded Linux without a problem.

I have written some simple hardware test programs, again without a problem,
using the examples/hello_world.c as a starting point. However, as they get
more complex, i.e. more variables and larger, the program crashes, with odd
messages coming out of mon_printf commands. It looks to me as though the
stack is crashing.

If I make the LOAD_ADDR in the Makefile 0x03000000, originally the default
location 0x00040004, i.e. much higher up than the original, the test program
works fine and returns to U-Boot without error.

Has anybody else seen anything like this? Or can anybody tell me where the
stack is? I have looked at the documentation, and cannot see anywhere that
describes the memory layout when U-Boot is running.

	Regards

	David Stoddart

	Aculab PLC




More information about the U-Boot mailing list