This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Fwd:
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Rohit Agarwal <rohitrules at gmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 28 Jun 2005 13:51:16 +0200
- Subject: Re: [ECOS] Fwd:
- References: <fc5cbb32050628021420c2a779@mail.gmail.com> <fc5cbb3205062804274590039f@mail.gmail.com>
On Tue, Jun 28, 2005 at 04:57:16PM +0530, Rohit Agarwal wrote:
> I am trying to compile a simple C code for my arm processor IXDP425.
>
> the contents of my_file.c which i wish to run on the arm processor is
>
> /* this is a simple hello world program */
> #include <stdio.h>
>
> int main(void)
> {
> printf("Hello, eCos world!\n");
> return 0;
> }
>
> the steps that i follow are as listed below.
>
> 1. make
> (the Makefile was already present in the directory)
>
>
> 2. arm-elf-objcopy -O srec my_file my_file.srec
>
> this gives me my_file.srec
>
> 3. after that i try to load this file using redboot (launched from
> minicom) by giving the folowing command
>
> Redboot> load -v -m yModem
>
> 4. then i transfer my_file.srec using the Y MODEM protocol. the file
> gets transferred.
>
> When the transfer is complete, i get a sound from the IXDP425 and the
> following message
>
> RedBoot> load -v -m yMODEM
> Entry point: 0x00080040, address range: 0x00080000-0x0008868c
> xyzModem - CRC mode, 777(SOH)/0(STX)/0(CAN) packets, 11 retries
>
> 5. thwn when i type go, i get the following error
>
> RedBoot> go
> $T050f:00080044;0d:0ffd0fec;#1b
>
> on pressing any key, the garbage string gets repeated
Why do you think its garbage?
gdb can interpret it for you.
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