This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Problem running hello.c on ARM simulator
- From: "Justin Bojarski" <jbojarski at sarnoff dot com>
- To: "ecos-discuss at sources dot redhat dot com" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 02 Jun 2003 09:41:02 -0400
- Subject: [ECOS] Problem running hello.c on ARM simulator
Hello,
I'm trying to compile and run a simple hello world program for eCos. I'm
trying to do it as a simulator for the ARM environment. The problem is
as soon as I type run from within gdb, the program locks, eats up all my
memory, then gives me a not enough memory error in windows. I'm trying
to do it through cygwin. Can anyone help me out? Here is everything I
typed:
jbojarski@jpjohnson /tmp/ecos-work/arm
$ /opt/ecos/gnutools/arm-elf/bin/arm-elf-gcc.exe -g
-I/tmp/ecos-work/arm/arm_in
stall/include /tmp/ecos-work/arm/hello.c
-L/tmp/ecos-work/arm/arm_install/lib -
Ttarget.ld -nostdlib
jbojarski@jpjohnson /tmp/ecos-work/arm
$ /opt/ecos/gnutools/arm-elf/bin/arm-elf-gdb.exe -nw
/tmp/ecos-work/arm/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-cygwin --target=arm-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) load a.out
Loading section .rom_vectors, size 0x40 vma 0x8000
Loading section .text, size 0xfcf4 vma 0x8040
Loading section .rodata, size 0x310 vma 0x17d34
Loading section .data, size 0x330 vma 0x18044
Start address 0x8040
Transfer rate: 531360 bits in <1 sec.
(gdb) run
Starting program: /tmp/ecos-work/arm/a.out
ARMulator can't allocate VM page: Not enough core
right before it gave the VM page error, it just stopped... and consumed
memory. Can anyone help out?
Thanks,
Justin
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss