[ECOS] run without GDB

Chris Garry cgarry@sweeneydesign.co.uk
Tue Jun 10 10:05:00 GMT 2003


----- 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



More information about the Ecos-discuss mailing list