This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: newbie:application not run
- From: "Oscar" <martinelli dot o at tiscali dot it>
- To: "'eCos Discussion'" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 16 Sep 2003 00:29:48 +0200
- Subject: RE: [ECOS] newbie:application not run
I tried to follow your suggestion but i can't resolve the problem.
My configuration has been obtain simply from "MICROPLEX Printer Controller
5.0" package "default" option. Now the unique change from default is the
compiler: i'm using the xscale-elf-gcc not arm-elf-gcc.
OSCAR
-----Original Message-----
From: Gary Thomas [mailto:gary@mlbassoc.com]
Sent: lunedì 15 settembre 2003 15.45
To: Oscar
Cc: eCos Discussion
Subject: RE: [ECOS] newbie:application not run
Please copy the mailing list - private email support is only available under
contract. Further unsolicited private responses will be ignored.
On Mon, 2003-09-15 at 07:36, Oscar wrote:
> In the ecos configuration tools i set the CYGSEM_HAL_USE_ROM_MONITOR
> on GDB_stub.
What are you using "GDB_stub" for? You've got RedBoot, you don't need GDB
stubs and you don't want/need them in your application.
> I can find the string CYGSEM_HAL_USE_ROM_MONITOR only in
> hal_arm_xscale_mpc50.h file.
Good - that's where it's supposed to be.
> Reedboot prompt:
> ----------------------------------------------------------------------
> ------
> -------
> Platform: MPC 5.0 (XScale)
> Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
>
>
> RAM: 0x00000000-0x04000000, 0x0000fcc8-0x02000000 available
>
> Redboot> load -v -m ymodem
> CCEntry point: 0x00010040, address range: 0x00010000-0x0001ff70
>
> xyzModem - CRC mode, 3(SOH)/1006(STX)/0(CAN) packets, 5 retries
>
> Redboot> go
> $T050f:94c80000;0d:fcffff01;#57$T050f:94c80000;0d:fcffff01;#57$T050f:9
> 4c8000
> 0;0
>
----------------------------------------------------------------------------
This says that your application thinks it needs GDB. Check your
configuration again. You should be able to run something like this:
% ecosconfig new mpc50
% ecosconfig tree
% make
% "make application"
This default setup should create applications which work fine, either loaded
directly by RedBoot and putting the output to the RedBoot console device, or
loaded by GDB and using the GDB protocol for output.
Also, I note by the output above, that your program has failed at PC=0xC894
which is outside of the program, with the stack at 0x01FFFFFC. How did it
get there? What sort of configuration are you running?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss