public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] newbie:application not run
@ 2003-09-15 13:00 Oscar
  2003-09-15 13:16 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Oscar @ 2003-09-15 13:00 UTC (permalink / raw)
  To: ecos-discuss

Hi,
hy application not run when i try to run it from redboot with "GO" (at
redboot prompt i see a strange character), instead the same application run
well with GDB.
Somebody have an idea? 
THANKS
OSCAR



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] newbie:application not run
  2003-09-15 13:00 [ECOS] newbie:application not run Oscar
@ 2003-09-15 13:16 ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2003-09-15 13:16 UTC (permalink / raw)
  To: Oscar; +Cc: eCos Discussion

On Mon, 2003-09-15 at 07:00, Oscar wrote:
> Hi,
> hy application not run when i try to run it from redboot with "GO" (at
> redboot prompt i see a strange character), instead the same application run
> well with GDB.
> Somebody have an idea? 

Maybe if you provide a little more information, we can help.

What kind of "strange character" do you see?
Does your application set CYGSEM_HAL_USE_ROM_MONITOR?  You can tell by
looking for this string in the .../include/pkgconf directory in your
build/install tree.

-- 
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

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

* RE: [ECOS] newbie:application not run
  2003-09-15 13:45 ` Gary Thomas
@ 2003-09-15 22:29   ` Oscar
  0 siblings, 0 replies; 5+ messages in thread
From: Oscar @ 2003-09-15 22:29 UTC (permalink / raw)
  To: 'eCos Discussion'

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

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

* RE: [ECOS] newbie:application not run
@ 2003-09-15 13:45 Oscar
  0 siblings, 0 replies; 5+ messages in thread
From: Oscar @ 2003-09-15 13:45 UTC (permalink / raw)
  To: ecos-discuss

In the ecos configuration tool i set the CYGSEM_HAL_USE_ROM_MONITOR on
GDB_stub. I can find the string CYGSEM_HAL_USE_ROM_MONITOR only in
hal_arm_xscale_mpc50.h file. 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:94c8000
0;0
----------------------------------------------------------------------------
---
Thanks
OSCAR

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Gary Thomas
Sent: lunedì 15 settembre 2003 15.17
To: Oscar
Cc: eCos Discussion
Subject: Re: [ECOS] newbie:application not run


On Mon, 2003-09-15 at 07:00, Oscar wrote:
> Hi,
> hy application not run when i try to run it from redboot with "GO" (at
> redboot prompt i see a strange character), instead the same 
> application run well with GDB. Somebody have an idea?

Maybe if you provide a little more information, we can help.

What kind of "strange character" do you see?
Does your application set CYGSEM_HAL_USE_ROM_MONITOR?  You can tell by
looking for this string in the .../include/pkgconf directory in your
build/install tree.

-- 
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



--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* RE: [ECOS] newbie:application not run
       [not found] <000201c37b8e$5fcae210$5ba985d9@portatile1>
@ 2003-09-15 13:45 ` Gary Thomas
  2003-09-15 22:29   ` Oscar
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2003-09-15 13:45 UTC (permalink / raw)
  To: Oscar; +Cc: eCos Discussion

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:94c8000
> 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

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

end of thread, other threads:[~2003-09-15 22:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 13:00 [ECOS] newbie:application not run Oscar
2003-09-15 13:16 ` Gary Thomas
2003-09-15 13:45 Oscar
     [not found] <000201c37b8e$5fcae210$5ba985d9@portatile1>
2003-09-15 13:45 ` Gary Thomas
2003-09-15 22:29   ` Oscar

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).