This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: About real time clock problem
- To: "ecos-discuss" <ecos-discuss at sources dot redhat dot com>, "Robin Farine" <acnrf at dial dot eunet dot ch>
- Subject: RE: [ECOS] About real time clock problem
- From: "John" <john at imining dot com dot tw>
- Date: Mon, 12 Mar 2001 11:10:55 +0800
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