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: executing applications


Stijn Symons wrote:
> 
> Hi,
> 
> is there any other way to execute an application other than gdb? We've
> got the hello-world program running with gdb, but it get's lost when we
> reset the ipaq. So we've been trying to load and execute the program in
> redboot (in elf, binary and srec formats) but it won't run...

You mean if it loads via GDB it works, but if you load the exact same
executable (albeit converted to binary or srec), if doesn't? That shouldn't
happen :-|. Are you running it with the correct entry point?
 
> Is there a way to put the program in ROM with gdb or is there any other
> way to get a program running on redboot/ecos?

Yes, assuming the sections are all loaded consecutively, you could load it
with GDB, then quit GDB, start a terminal emulator at which point you
should have the RedBoot command line, and then program it into free flash -
it will still be at the addresses that GDB loaded it to.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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