This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: eCos and AT91SAM7S-EK
- From: wavecom wavecom <wavecomw at yahoo dot com>
- To: Andrew Lunn <andrew at lunn dot ch>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Sat, 30 Jun 2007 11:13:16 -0700 (PDT)
- Subject: Re: [ECOS] eCos and AT91SAM7S-EK
--- Andrew Lunn <andrew@lunn.ch> wrote:
> On Sat, Jun 30, 2007 at 09:11:58AM -0700, wavecom
> wavecom wrote:
> > Thanks for answer,
> > SAM-BA is tool provided by Atmel to downloading
> code
> > to Atmel arm controllers via USB and others
> > interfaces. I've downloaded the ?hello? (without
> > extension) file at start address 0x200000. Make
> > execution on the examples produces 2 files
> ?hello.o?
> > and ?hello?.
>
> hello is the elf file. Does SAM-BA support elf, or
> do you need to
> convert it to binary using objcopy? I think your
> probably do.
I have converted elf to bin by excetuting
?arm-elf-objcopy.exe -O binary hello hello.bin? than
hello.bin I've downloaded to board by SAM-BA and
result was the same ? no output string.
>
> > I have got wiggler-jtag interface, but I didn't
> try it
> > with the eCos.
>
> I suggest you use this with gdb for debugging and
> use it for
> downloading code to the device.
>
So I'll try to use wiggler-JTAG to run eCos examples.
At first I've started openocd ?openocd-pp.exe -f
at91sam7s256-wiggler.cfg?. I had been using this
configuration to debug and download standalone
programs.
After that I've started gdb ?arm-elf-gdb hello? (hello
elf), in gdb setup target ?target remote
localhost:3333?
after the command the following messages appeared:
?
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
?? () at
../../gcc-4.0.2/gcc/config/arm/ieee754-df.S:1287
1287 ../../gcc-4.0.2/gcc/config/arm/ieee754-df.S:
No such file or directory.
in ../../gcc-4.0.2/gcc/config/arm/ieee754-df.S
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
Current language: auto; currently asm
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.)
?
than command ?continue?. I have following message
?
(gdb) continue
Continuing.
warning: (Internal error: pc 0x18 in read in psymtab,
but not in symtab.?
?
But still no ?Hello, eCos world!?.
Pete
> 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
>
>
____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss