This is the mail archive of the ecos-discuss@sources.redhat.com 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] |
-----Original Message----- From: Gary Thomas [mailto:gary@mlbassoc.com] Sent: 23. april 2004 16:18 To: Martin Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Simulator problems on EB40a On Fri, 2004-04-23 at 05:59, Martin wrote: > Regards > > I am trying to run the classic "hello world" on a simulator for EB40a. > I have done the following: > > 1) Compiled the ecos: Template: "EB40a", startup type "rom", build > library > > 2) Linked and compiled the program: "arm-elf-gcc -g -I > opt/ecos/work/ecos_rom_std_install/include hello.c -L > /opt/ecos/work/ecos_rom_std_install/lib/ -Ttarget.ld -nostdlib" > > 3) Connect to the target: "arm-elf-gdb a.out" > 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-linux-gnu > --target=arm- elf"... > > a) tar sim --board=eb40a > Connected to the simulator. > > b) load > Loading section .rom_vectors, size 0x40 vma 0x1000000 > Loading section .text, size 0xfedc vma 0x1000040 > Loading section .rodata, size 0x2a0 vma 0x100ff1c > Loading section .data, size 0x378 vma 0x4000 > Start address 0x1000040 > Transfer rate: 534944 bits in <1 sec. > > c) run > Starting program: /opt/ecos/ecos-2.0/examples/a.out > > Afterwards nothing happens. Is it correct that I need to build the > tree for "ROM startup", when I want to run my program on the simulator > without any monitor? Am I missing anything here? I checked out the > eCos CVS about two weeks ago. > > /Martin Does this simulator support the *exact* peripheral set that eCos is looking for? Where/how did you get/build it? -- Gary Thomas <gary@mlbassoc.com> MLB Associates What do you mean by peripheral? I installed eCos as described in the documentation (http://ecos.sourceware.org/getstart.html) on a Mandrake 9.2 distribution. I know this is working, as I have build eCos and linked it with the hello world program, and executed it succesfully on the board. As far as I have understood, the board is directly supported by eCos. Do I need to configure anything particular about the simulator? Is it correct that I need to build the tree for "ROM startup", when I want to run my program on the simulator without any monitor? An earlier post on this mailing list (http://sources.redhat.com/ml/ecos-discuss/2003-05/msg00138.html) shows an example of succesfully simulation upon this board. He doesn't mention any particular config for the simulator. I appreciate your response. /Martin -- 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] |