[ECOS] problem with the RealTimeClock ISR routine "return" instruction
Satish Kumar
satish@bvt.sc.sanyo.co.jp
Fri Sep 19 07:22:00 GMT 2003
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
More information about the Ecos-discuss
mailing list