This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Simulator problems on EB40a
- From: "Martin" <msie02 at kom dot auc dot dk>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 23 Apr 2004 13:59:04 +0200
- Subject: [ECOS] Simulator problems on EB40a
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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss