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]
Other format: [Raw text]

Re: run without GDB


----- Original Message ----- 
From: "Alessandro GARDICH" <gremlin@gremlin.it>
To: <ecos-discuss@sources.redhat.com>
Sent: Tuesday, June 10, 2003 10:48 AM
Subject: [ECOS] run without GDB


> hi to all 
> 
> i have a question ... 
> is possible to run (using RedBoot) a standalone program with the 'go'
> command, without gdb ???

Compile the program in the usual way:
(Example uses ARM compiler)

$ arm-elf-gcc -Wall -g -O2 -o example.elf -D__ECOS
-I/ecos-build/ecos-default_install/include example.c
-L/ecos-build/ecos-default_install/lib -Ttarget.ld -nostdlib

Remove debug information from the resulting elf file:

$ arm-elf-strip example.elf

Then in RedBoot:

RedBoot> load -m xmodem
<Send the example.elf file>
RedBoot> go

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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