public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* REDBOOT error
@ 2005-06-28  9:14 Rohit Agarwal
  2005-06-28  9:21 ` Matthew J Fletcher
  0 siblings, 1 reply; 2+ messages in thread
From: Rohit Agarwal @ 2005-06-28  9:14 UTC (permalink / raw)
  To: gdb

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

RedBoot> go
$T050f:00080044;0d:0ffd0fec;#1b$T050f:00080044;0d:0ffd0fec;#1b$T050f:00080044;0

Can anyone tell me what should i do?


ROHIT
-- 
if u dont know it, it doesnt exist

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: REDBOOT error
  2005-06-28  9:14 REDBOOT error Rohit Agarwal
@ 2005-06-28  9:21 ` Matthew J Fletcher
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew J Fletcher @ 2005-06-28  9:21 UTC (permalink / raw)
  To: gdb

On Tuesday 28 Jun 2005 10:14 am, 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
>
> RedBoot> go
> $T050f:00080044;0d:0ffd0fec;#1b$T050f:00080044;0d:0ffd0fec;#1b$T050f:000800
>44;0
>
> Can anyone tell me what should i do?

the 'garbage string' is gdb protocol, maybe you should attach gdb to your 
target and debug the problem. 

if its happening when you type 'go' then your crashing someplace in startup, 
is probably a configuration problem spesific to your board.

i would also suggest asking on the redboot mailing lists for help with 
redboot, not the gdb ones.

regards
---
Matthew J Fletcher
Embedded Software
Serck Controls Ltd
---
**********************************************************************
Serck Controls Ltd, Rowley Drive, Coventry, CV3 4FH, UK
Tel: +44 (0) 24 7630 5050   Fax: +44 (0) 24 7630 2437
Web: www.serck-controls.com  Admin: post@serck-controls.co.uk
A subsidiary of Serck Controls Pty. Ltd. Reg. in England No. 4353634
**********************************************************************
This email and files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the above. Any views or opinions presented are those of the author
and do not necessarily represent those of Serck Controls Ltd.


This message has been checked by MessageLabs
******************************************************************

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-28  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-28  9:14 REDBOOT error Rohit Agarwal
2005-06-28  9:21 ` Matthew J Fletcher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).