[U-Boot] Unable to run Standalone applications on NGW100

Jerry Van Baren gvb.uboot at gmail.com
Fri Oct 3 00:14:37 CEST 2008


Martin Mroz wrote:
> 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
                                                           ^
                   One of these things is not like the other
> crashes and burns:
> 
> U-Boot> go 0x10400000
                  ^ One of these things doesn't belong
> ## Starting application at 0x10400000 ...
                                  ^
>  *** Unhandled exception 3 at PC=0xea000000
                                      ^^^^^^^^
If you guessed this thing is not like the others...
> 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

This looks like an unlinked disassembly of the .o which means that the 
00 00 argument is not real.  You cannot tell much from this.

Check the FAQ, it probably applies:
<http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork>

Good luck,
gvb


More information about the U-Boot mailing list