public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] System crashes when executed from ROM
@ 2000-10-19  9:57 Chandrasekhar G
  2000-10-19 10:30 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Chandrasekhar G @ 2000-10-19  9:57 UTC (permalink / raw)
  To: ecos-discuss

Hi,

    We are trying to execute an application from ROM.  It works perfectly from
RAM.  But with ROM it crashes on entering certain routines.  The routines do
some IO on serial port using cyg_io_read and cyg_io_write and sprintf and
sscanf functions.  Can anybody suggest possible
reasons for this beheavior?

Thank you
chandra

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

* Re: [ECOS] System crashes when executed from ROM
  2000-10-19  9:57 [ECOS] System crashes when executed from ROM Chandrasekhar G
@ 2000-10-19 10:30 ` Jonathan Larmour
  2000-10-19 10:49   ` Chandrasekhar G
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Larmour @ 2000-10-19 10:30 UTC (permalink / raw)
  To: chandrag; +Cc: ecos-discuss

Chandrasekhar G wrote:
> 
> Hi,
> 
>     We are trying to execute an application from ROM.  It works perfectly from
> RAM.  But with ROM it crashes on entering certain routines.  The routines do
> some IO on serial port using cyg_io_read and cyg_io_write and sprintf and
> sscanf functions.  Can anybody suggest possible
> reasons for this beheavior?

Just to check: you are changing the startup type (i.e. the config option
CYG_HAL_STARTUP) from RAM to ROM and not just programming the same
application into ROM, aren't you? :-).

Other than that, no idea. Does it actually manage to call sprintf/sscanf or
cyg_io_read/write? I presume you mean it crashes, i.e. hangs? Are there any
relevant differences in your configuration? Have you tried using just a
very simple test application?

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

* Re: [ECOS] System crashes when executed from ROM
  2000-10-19 10:30 ` Jonathan Larmour
@ 2000-10-19 10:49   ` Chandrasekhar G
  0 siblings, 0 replies; 3+ messages in thread
From: Chandrasekhar G @ 2000-10-19 10:49 UTC (permalink / raw)
  To: ecos-discuss

The configuration option currently is CYG_HAL_SARTUP_ROM.  We executed the test
program tm_basic and some other small programs from ROM.  We made a small
change in the routine.  Before the control reaches the infinite loop we read a
port.  If its value is 1 we execute code RAM, other wise jump to a location in
ROM.  From there the execution starts.  The program gets a Trap signal when it
try to enter the routine and it takes control.

On Fri, 20 Oct 2000, you wrote:
> Chandrasekhar G wrote:
> > 
> > Hi,
> > 
> >     We are trying to execute an application from ROM.  It works perfectly from
> > RAM.  But with ROM it crashes on entering certain routines.  The routines do
> > some IO on serial port using cyg_io_read and cyg_io_write and sprintf and
> > sscanf functions.  Can anybody suggest possible
> > reasons for this beheavior?
> 
> Just to check: you are changing the startup type (i.e. the config option
> CYG_HAL_STARTUP) from RAM to ROM and not just programming the same
> application into ROM, aren't you? :-).
> 
> Other than that, no idea. Does it actually manage to call sprintf/sscanf or
> cyg_io_read/write? I presume you mean it crashes, i.e. hangs? Are there any
> relevant differences in your configuration? Have you tried using just a
> very simple test application?
> 
> Jifl
> -- 
> Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
> "Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

end of thread, other threads:[~2000-10-19 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19  9:57 [ECOS] System crashes when executed from ROM Chandrasekhar G
2000-10-19 10:30 ` Jonathan Larmour
2000-10-19 10:49   ` Chandrasekhar G

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