public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] comiling and running 'hello world'
@ 2003-10-16  8:53 Bier Meister
  2003-10-16 12:03 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Bier Meister @ 2003-10-16  8:53 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I compiled the 'hello world!' example from the eCos 2.0 user guide using 
the following command:
(my current directory is <proj>/proj_install/lib)

arm-elf-gcc -g -I ../include/ hello.c -L ./ -Ttarget.ld -nostdlib

I try to run it in the simulator using the following command: $ 
arm-elf-gdb -nw a.out

The result is this output and thats it. i can only stop gdb using ctrl+c


$ arm-elf-gdb -nw a.out
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .rom_vectors, size 0x40 vma 0x8000
Loading section .text, size 0xfcfc vma 0x8040
Loading section .rodata, size 0x310 vma 0x17d3c
Loading section .data, size 0x330 vma 0x1804c
Start address 0x8040
Transfer rate: 531424 bits in <1 sec.
(gdb) run
Starting program: 
/home/bcsdohi/programming/1610hello/hello_install/lib/a.out
*sim: unknown SWI encountered - ffffff - ignoring*





However, if i issue the comiple command : $ arm-elf-gcc -g -I 
../include/ hello.c -L ./
and then try to debug the executable in the simjulator, it works just fine.


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

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

* Re: [ECOS] comiling and running 'hello world'
  2003-10-16  8:53 [ECOS] comiling and running 'hello world' Bier Meister
@ 2003-10-16 12:03 ` Gary Thomas
       [not found]   ` <3F8E8BF6.10109@freenet.de>
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2003-10-16 12:03 UTC (permalink / raw)
  To: Bier Meister; +Cc: ecos-discuss

On Thu, 2003-10-16 at 02:53, Bier Meister wrote:
> Hi,
> 
> I compiled the 'hello world!' example from the eCos 2.0 user guide using 
> the following command:
> (my current directory is <proj>/proj_install/lib)
> 
> arm-elf-gcc -g -I ../include/ hello.c -L ./ -Ttarget.ld -nostdlib
> 
> I try to run it in the simulator using the following command: $ 
> arm-elf-gdb -nw a.out
> 
> The result is this output and thats it. i can only stop gdb using ctrl+c
> 
> 
> $ arm-elf-gdb -nw a.out
> GNU gdb 5.3
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
> (gdb) target sim
> Connected to the simulator.
> (gdb) load
> Loading section .rom_vectors, size 0x40 vma 0x8000
> Loading section .text, size 0xfcfc vma 0x8040
> Loading section .rodata, size 0x310 vma 0x17d3c
> Loading section .data, size 0x330 vma 0x1804c
> Start address 0x8040
> Transfer rate: 531424 bits in <1 sec.
> (gdb) run
> Starting program: 
> /home/bcsdohi/programming/1610hello/hello_install/lib/a.out
> *sim: unknown SWI encountered - ffffff - ignoring*
> 

How did you configure the eCos kernel?

> However, if i issue the comiple command : $ arm-elf-gcc -g -I 
> ../include/ hello.c -L ./
> and then try to debug the executable in the simjulator, it works just fine.

Because you're not using the eCos startup code in this case.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

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

* Re: [ECOS] comiling and running 'hello world'
       [not found]   ` <3F8E8BF6.10109@freenet.de>
@ 2003-10-16 12:29     ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2003-10-16 12:29 UTC (permalink / raw)
  To: Bier Meister; +Cc: eCos Discussion

Please copy your replies to the list.  Free support is only provided
on the list so that all may benefit.  Further private responses will
be ignored.

On Thu, 2003-10-16 at 06:15, Bier Meister wrote:
> I chose the template:
> ARM Development Board PID
> 
> With the default packages
> 

I just tried this, following the rules (below) and did not observe
the same problem.  Note however, that the standard simulator does 
not provide the "ARM/PID" I/O environment, so this really doesn't
do very much.  If you want a PID simulator, try using SID.  Search
the eCos mailing list archives for the many threads along this topic.

> 
> Gary Thomas wrote:
> 
> >On Thu, 2003-10-16 at 02:53, Bier Meister wrote:
> >  
> >
> >>Hi,
> >>
> >>I compiled the 'hello world!' example from the eCos 2.0 user guide using 
> >>the following command:
> >>(my current directory is <proj>/proj_install/lib)
> >>
> >>arm-elf-gcc -g -I ../include/ hello.c -L ./ -Ttarget.ld -nostdlib

This is not how you build an eCos application.  Please refer to the 
manual, or my demonstration pages.

> >>
> >>I try to run it in the simulator using the following command: $ 
> >>arm-elf-gdb -nw a.out
> >>
> >>The result is this output and thats it. i can only stop gdb using ctrl+c
> >>
> >>
> >>$ arm-elf-gdb -nw a.out
> >>GNU gdb 5.3
> >>Copyright 2002 Free Software Foundation, Inc.
> >>GDB is free software, covered by the GNU General Public License, and you are
> >>welcome to change it and/or distribute copies of it under certain 
> >>conditions.
> >>Type "show copying" to see the conditions.
> >>There is absolutely no warranty for GDB.  Type "show warranty" for details.
> >>This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
> >>(gdb) target sim
> >>Connected to the simulator.
> >>(gdb) load
> >>Loading section .rom_vectors, size 0x40 vma 0x8000
> >>Loading section .text, size 0xfcfc vma 0x8040
> >>Loading section .rodata, size 0x310 vma 0x17d3c
> >>Loading section .data, size 0x330 vma 0x1804c
> >>Start address 0x8040
> >>Transfer rate: 531424 bits in <1 sec.
> >>(gdb) run
> >>Starting program: 
> >>/home/bcsdohi/programming/1610hello/hello_install/lib/a.out
> >>*sim: unknown SWI encountered - ffffff - ignoring*
> >>
> >>    
> >>
> >
> >How did you configure the eCos kernel?
> >
> >  
> >
> >>However, if i issue the comiple command : $ arm-elf-gcc -g -I 
> >>../include/ hello.c -L ./
> >>and then try to debug the executable in the simjulator, it works just fine.
> >>    
> >>
> >
> >Because you're not using the eCos startup code in this case.
> >
> >  
> >
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

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

end of thread, other threads:[~2003-10-16 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16  8:53 [ECOS] comiling and running 'hello world' Bier Meister
2003-10-16 12:03 ` Gary Thomas
     [not found]   ` <3F8E8BF6.10109@freenet.de>
2003-10-16 12:29     ` Gary Thomas

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