From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23169 invoked by alias); 16 Oct 2003 08:53:01 -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 23155 invoked from network); 16 Oct 2003 08:52:58 -0000 Received: from unknown (HELO mout1.freenet.de) (194.97.50.132) by sources.redhat.com with SMTP; 16 Oct 2003 08:52:58 -0000 Received: from [194.97.55.147] (helo=mx4.freenet.de) by mout1.freenet.de with asmtp (Exim 4.24) id 1AA3sQ-0000ol-39 for ecos-discuss@sources.redhat.com; Thu, 16 Oct 2003 10:52:58 +0200 Received: from a-212-224-8-142.easynet.de ([212.224.8.142] helo=freenet.de) by mx4.freenet.de with asmtp (ID bier.meister@freenet.de) (Exim 4.24 #1) id 1AA3sP-0006bS-IV for ecos-discuss@sources.redhat.com; Thu, 16 Oct 2003 10:52:57 +0200 Message-ID: <3F8E5C83.2070206@freenet.de> Date: Thu, 16 Oct 2003 08:53:00 -0000 From: Bier Meister User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 X-Accept-Language: en-us, en, he MIME-Version: 1.0 To: ecos-discuss@sources.redhat.com X-Enigmail-Version: 0.71.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [ECOS] comiling and running 'hello world' X-SW-Source: 2003-10/txt/msg00290.txt.bz2 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* 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