[ECOS] application fail to execute instead.....

Nick Garnett nickg@ecoscentric.com
Thu Jul 31 09:32:00 GMT 2003


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



More information about the Ecos-discuss mailing list