This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: application fail to execute instead.....
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Satish Kumar <satish at bvt dot sc dot sanyo dot co dot jp>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 31 Jul 2003 10:16:17 +0100
- Subject: Re: [ECOS] application fail to execute instead.....
- References: <20030731152954.86F8.SATISH@bvt.sc.sanyo.co.jp>
Satish Kumar <satish@bvt.sc.sanyo.co.jp> writes:
> Hi,
> following is the output as shown on the hyperterminal when i tried
> to execute the "hello world" program. on executing the "go" command the
> hyperterminal displays the "version" command output, instead of
> displaying "Hello World".....
>
> where have i gone wrong...?
>
> +
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version v2_0 - built 12:57:20, Jul 31 2003
>
> Platform: SANYO TOPAZ Development Board CPU: ARM926EJ-S..
> Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
>
> RAM: 0x00000000-0x04000000, 0x00004948-0x04000000 available
> RedBoot> load -r -v -b 0x100000 -m xmodem
> CCCCCCCCCRaw file loaded 0x00100000-0x001fa6c0, assumed entry at 0x00100000
Are you actually loading a raw file here, or an ELF file? If it is an
ELF file then this won't work since it will just be loaded into
memory, headers and all. If it is a binary file, there is no guarantee
that the entry point is at the very beginning. That is seldom true for
eCos apps.
A better approach is to load an S-Record file, since that contains
information about the entry point.
Better still is to run programs via GDB.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss