From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8068 invoked by alias); 16 Oct 2003 12:03:11 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 8059 invoked from network); 16 Oct 2003 12:03:10 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 16 Oct 2003 12:03:10 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id 078BE50E0FC; Thu, 16 Oct 2003 06:03:10 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 0C39950E0FB; Thu, 16 Oct 2003 06:03:09 -0600 (MDT) From: Gary Thomas To: Bier Meister Cc: ecos-discuss@sources.redhat.com In-Reply-To: <3F8E5C83.2070206@freenet.de> References: <3F8E5C83.2070206@freenet.de> Content-Type: text/plain Organization: MLB Associates Message-Id: <1066305788.32461.124.camel@hermes> Mime-Version: 1.0 Date: Thu, 16 Oct 2003 12:03:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: [ECOS] comiling and running 'hello world' X-SW-Source: 2003-10/txt/msg00300.txt.bz2 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_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 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