[ECOS] About real time clock problem

John john@imining.com.tw
Sun Mar 11 19:14:00 GMT 2001


I have tested the twothreads.c example.
Both 2 threads hold on cyg_thread_delay(200) forever.

-----Original Message-----
From: Robin Farine [ mailto:acnrf@dial.eunet.ch ]
Sent: Friday, March 09, 2001 7:13 PM
To: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] About real time clock problem


Hi,

"John" <john@imining.com.tw> writes:

> Sorry I don't see the previous post in the digest, so I post it again.
> 
> I use default template to build an i386 pc target application.
> When I call cyg_thread_delay(2), the thead sleep forever.
> The scheduler timeslicing also dose not work.
> I find that the real time clock resolution is 1000000000/100.
> No matter what real time clock resolution I change (even 1/1), the problem is still the same.
> And the cyg_current_time() always return 0.
> Why?

Have you tried any test program using threads from the eCos distribution?
if yes then does it work?
    if yes then
        your own program probably has a bug
    else
        provide additional info (at least a small test program that
        illustrates the problem)
    fi
else
   please do it and go back to the start of this "eCos problem resolution
   algorithm"
fi

HTH,

Robin


More information about the Ecos-discuss mailing list