public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] problem with the RealTimeClock ISR routine "return" instruction
@ 2003-09-19  7:22 Satish Kumar
  2003-09-19  8:28 ` Robert Cragie
  0 siblings, 1 reply; 3+ messages in thread
From: Satish Kumar @ 2003-09-19  7:22 UTC (permalink / raw)
  To: ecos-discuss

Hi,
    i m testing the clocktruth.cxx on my target board which has
arm926ej-s core.i m using gcc 3.2.1 for compiling my code.
i have noticed a strange behaviour in the ISR routine.
when the program calls Cyg_RealTimeClock() routine to initialize
the external timer..and when the timer generates an periodic interrupt 
the Cyg_RealTimeClock::isr() routine is called with the correct vector
number and when this instruction i.e
(  return Cyg_Interrupt::CALL_DSR|Cyg_Interrupt::HANDLED )
is excuted in the ISR routine, it is actually branching to spurious_IRQ
handler routine..
due to this my clocktruth program hangs in the while loop unable to 
read the rtc->counter_value_lo and returns 0 everytime..failin to print
the time value.

my concern is why "the spurious IRQ"  when the ISR routine was 
called with the correct timer interrupt no:...? is it somethin to do
with the HAL porting issues..?


some one help plz..
saty




 isr routine 
-- 
Satish Kumar <satish@bvt.sc.sanyo.co.jp>


-- 
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] 3+ messages in thread

end of thread, other threads:[~2003-09-19  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-19  7:22 [ECOS] problem with the RealTimeClock ISR routine "return" instruction Satish Kumar
2003-09-19  8:28 ` Robert Cragie
2003-09-19  8:41   ` Satish Kumar

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