public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Bier Meister <bier.meister@freenet.de>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] comiling and running 'hello world'
Date: Thu, 16 Oct 2003 12:29:00 -0000	[thread overview]
Message-ID: <1066307382.32461.134.camel@hermes> (raw)
In-Reply-To: <3F8E8BF6.10109@freenet.de>

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

      parent reply	other threads:[~2003-10-16 12:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16  8:53 Bier Meister
2003-10-16 12:03 ` Gary Thomas
     [not found]   ` <3F8E8BF6.10109@freenet.de>
2003-10-16 12:29     ` Gary Thomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1066307382.32461.134.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=bier.meister@freenet.de \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).