This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ecos over arm-elf-gdb --sim target
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Mike A <embeddedeng at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 26 Aug 2002 12:54:02 +0200
- Subject: Re: [ECOS] ecos over arm-elf-gdb --sim target
- References: <F78hBwY486qCsmriiEI000052d6@hotmail.com>
On Mon, Aug 26, 2002 at 10:45:47AM +0000, Mike A wrote:
> Hi,
>
> If I run any of the tests or the example ecos applications on the
> arm-elf-gdb with sim target, I get the following error:
>
> C:\rep\examples\examples>arm-elf-gdb hello
> GNU gdb 5.2.1
> 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) target sim
> Connected to the simulator.
> (gdb) load
> Loading section .rom_vectors, size 0x40 vma 0xe0000000
> Loading section .text, size 0xb7f8 vma 0xe0000040
> Loading section .rodata, size 0x3bc vma 0xe000b838
> Loading section .data, size 0x4a8 vma 0x1000
> Start address 0xe0000040
> Transfer rate: 394464 bits in <1 sec.
> (gdb) b main
> Breakpoint 1 at 0xe00007fc: file hello.c, line 5.
> (gdb) run
> Starting program: /ecos-c/rep/examples/examples/hello.exe
> ARMulator can't allocate VM page: Not enough core
Im guessing here, but it could be trying to malloc(0xe000ffff) which
M$ is having problems with. I guess you have built a ROM application
and the ROM for your target is at 0xe0000000. Try building a RAM
application so the application code is lower down in memory.
> 2. Is there an option in arm-elf-objcopy or any other tool to dump the arm
> execuatble in elf format that is accepted by ADW or ADX (from SDT 2.51 or
> ADS)?
I think the problem here is with ADW and ADX. They incorrectly support
elf. I don't remember the details. Look back in the archive.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss