This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to use the simulators


On Tue, Nov 06, 2007 at 02:18:12PM +0200, badiu raz wrote:
> Hi,
> I am trying to use the simulators for the hello world program but I
> can not make it work, it just freezes with no result. I am using the
> arm simulator but i also tried  the others(powerpc, mimps32 etc).
> $ arm-elf-gdb
> GNU gdb 5.3 (eCosCentric)
> 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-cygwin --target=arm-elf".
> (gdb) file hello
> Reading symbols from hello...done.
> (gdb) target sim
> Connected to the simulator.
> (gdb) load
> Loading section .rom_vectors, size 0x40 vma 0x4000000
> Loading section .text, size 0xbca0 vma 0x4000040
> Loading section .rodata, size 0x3c4 vma 0x400bce0
> Loading section .data, size 0x35c vma 0x800
> Start address 0x4000040
> Transfer rate: 401408 bits in <1 sec.
> (gdb) run
> Starting program: /opt/ecos/ecos-2.0/examples/hello
> 
> after waiting 10 minutes i`ve closed the application. I have a p4 at
> 3Ghz  so i dont see how a simple program need more time to execute.
> I`ve compiled the example using the makefile that was in that folder.
> Please give some advice to make this work.

Have you checked the simulators simulate a serial port? Have you
checked you have a driver for the serial port?

Since you appear to be on Linux i would suggest you use the synthetic
target. I also suggest you don't use verison 2.0 which is very
old. See the anonymous CVS page.

     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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]