[U-Boot] Unable to run Standalone applications on NGW100
Martin Mroz
martinmroz at gmail.com
Thu Oct 2 07:39:31 CEST 2008
Hello,
I wanted to write in to ask if there was something I was doing wrong, with
respect to running standalone applications on U-Boot on an ATNGW100 (AVR32).
I uploaded one of the test programs (hello_world) to the SDRAM (0x10000000)
and verified the contents of memory, as compared to the source file and it
matched up perfectly. However when I attempt to "go 0x10000000" it just
crashes and burns:
U-Boot> go 0x10400000
## Starting application at 0x10400000 ...
*** Unhandled exception 3 at PC=0xea000000
Bus error at address 0x902901ff
pc: ea000000 lr: 10400012 sp: 11f6cb2c r12: 000000ea
r11: 11f6ce90 r10: 11f6ce90 r9: 10400000 r8: 000000c3
r7: 00000002 r6: 11fc97ec r5: 11f6cfa0 r4: 0000895c
r3: 11f6ce90 r2: 11f6ce90 r1: 00000000 r0: 00000000
Flags: qvnZc
Mode bits: hrje....g
CPU Mode: Supervisor
Stack pointer seems bogus, won't do stack dump
Unhandled exception
?
LR=0x10400012 means that the error occured at:
/* Print the ABI version */
app_startup(argv);
4: 16 9c mov r12,r11
6: 16 93 mov r3,r11
8: e0 6e 00 00 mov lr,0
c: ec 0e 03 2e ld.w lr,r6[lr<<0x2]
>>10: 5d 1e icall lr
printf ("Example expects ABI version %d\n", XF_VERSION);
printf ("Actual U-Boot ABI version %d\n", (int)get_version());
printf ("Hello World\n");
printf ("argc = %d\n", argc);
12: 30 07 mov r7,0
Any thoughts that you guys had would be wonderful.
Thanks in advance,
Martin Mroz
martinmroz at gmail.com
More information about the U-Boot
mailing list