This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to RUN a program?



On 03-Jul-2001 Nagendra EM wrote:
> Hi,
> These are the steps that have followed.
> 
> 1. Built redboot.bin using the configuration tool.
> 2. Burnt the bootflash on SA1110 using the utility provided by the
>    manufacturer.
> 3. Built the example program "hello" found in the examples directory
>    using arm-elf-gcc and followed the steps given in the "Getting
>    started" manual for ARM. (i.e., setting the PKG_INSTALL_DIR and
>    XCC).
> 4. Started the ARM-GDB by invoking arm-elf-gdb.exe file.
> Now, on the gdb prompt, 
> ----------------------------------------------------------
> gdb) target remote COM2
> Remote debugging using COM2
> 0x0 in ?? ()
> 
> (gdb) load hello.exe
> Loading section .rom_vectors, size 0x40 lma 0x50000000
                                              ^^^^^^^^^^

This tells me that you tried to build the 'hello' program for ROM mode.
You need to have a startup type of RAM in order to load & run via GDB.

The most likely reason for this would be that you tried to reuse a
configuration which you used to build RedBoot to build the application.
This is not correct.  You must have a new configuration (build directory,
etc) for a new environment, namely RAM based applications.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]