This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: run without GDB
- From: "Chris Garry" <cgarry at sweeneydesign dot co dot uk>
- To: "Alessandro GARDICH" <gremlin at gremlin dot it>,<ecos-discuss at sources dot redhat dot com>
- Date: Tue, 10 Jun 2003 11:08:14 +0100
- Subject: Re: [ECOS] run without GDB
- Organization: Sweeney Design
- References: <1055238489.1932.8.camel@motoko.loc>
- Reply-to: "Chris Garry" <cgarry at sweeneydesign dot co dot uk>
----- 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