public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Compiling ARM designed program for x86
@ 2007-08-07 12:44 Champion Jérôme
  2007-08-07 13:05 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Champion Jérôme @ 2007-08-07 12:44 UTC (permalink / raw)
  To: ecos-discuss

Hi,
I've been using eCos for making some applications for the Atmel AT91M55800A processor. ( With the Atmel AT91EB55 evaluation card ).
I've followed some tutorial, and it work quite well.
 
But is there an easy way to compile my programs for my computer ( it's a standard x86 with linux ) and test it locally ? Because it take a lot of time to upload the program to the card each time I make a little modification, and I only use printf, some timer/alarm, semaphore/mailbox. I don't use leds or switch.
 
I've tried to mimic how I've made with the ARM processor :
Download eCos for x86
Make a profile for x386 in configtool, build the library.
then build my source with this command : 
i386-elf-gcc -g -I /home/champioj/Projet/data/x86/x86_install/include /home/champioj/Projet/Perso/testes/helloworld/helloworld.c -L /home/champioj/Projet/data/x86/x86_install/lib -T target.ld -nostdlib
 
It make the file "a.out". But now I don't know what to do with it. 
With the ARM, the target was /dev/ttyS0 because I used the serial port. But now what is it ?
Or it's the wrong way and I can't do that because I need Redboot ?

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Compiling ARM designed program for x86
  2007-08-07 12:44 [ECOS] Compiling ARM designed program for x86 Champion Jérôme
@ 2007-08-07 13:05 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-08-07 13:05 UTC (permalink / raw)
  To: Champion J?r?me; +Cc: ecos-discuss

On Tue, Aug 07, 2007 at 02:44:25PM +0200, Champion J?r?me wrote:
> Hi,
> I've been using eCos for making some applications for the Atmel AT91M55800A processor. ( With the Atmel AT91EB55 evaluation card ).
> I've followed some tutorial, and it work quite well.
>  
> But is there an easy way to compile my programs for my computer ( it's a standard x86 with linux ) and test it locally ? Because it take a lot of time to upload the program to the card each time I make a little modification, and I only use printf, some timer/alarm, semaphore/mailbox. I don't use leds or switch.
>  
> I've tried to mimic how I've made with the ARM processor :
> Download eCos for x86
> Make a profile for x386 in configtool, build the library.
> then build my source with this command : 
> i386-elf-gcc -g -I /home/champioj/Projet/data/x86/x86_install/include /home/champioj/Projet/Perso/testes/helloworld/helloworld.c -L /home/champioj/Projet/data/x86/x86_install/lib -T target.ld -nostdlib
>  
> It make the file "a.out". But now I don't know what to do with it. 
> With the ARM, the target was /dev/ttyS0 because I used the serial port. But now what is it ?
> Or it's the wrong way and I can't do that because I need Redboot ?

Since you are on linux it is easy. Use the synthetic target. This runs
eCos as a Linux process. The programs you generate just run on
linux. You can use gdb as normal for a linux process etc....

       Andrew

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-07 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-07 12:44 [ECOS] Compiling ARM designed program for x86 Champion Jérôme
2007-08-07 13:05 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).