This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
twothreads.c hangs at cyg_thread_delay()
- From: "Gururaja Hebbar K R" <gururajakr at sanyo dot co dot in>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 17 Oct 2006 12:45:24 +0530
- Subject: [ECOS] twothreads.c hangs at cyg_thread_delay()
Hi All,
when i run the twothreads.c example prg it hangs after displaying
Entering twothreads' cyg_user_start() function
Beginning execution; thread data is 0
Beginning execution; thread data is 1
My target board is based on ARM926ej-s Processor. Board clock speed is 6
MHz & i use Timer 1 clocked with 3 MHz. I placed a diag_printf() in RTC
isr in clock.cxx. This prints properly. But i see that code does not
come out of cyg_thread_delay().
If i replace the cyg_thread_delay() with a for() it works fine.
Also could u guide me to set CYGNUM_HAL_RTC_PERIOD,
CYGNUM_HAL_RTC_NUMERATOR & CYGNUM_HAL_RTC_DENOMINATOR. The timer is the
same as used in Integrator/CP.
Regards
Gururaja
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss