This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: PC embedded i386 platform : clock runs 28 % too fast ?
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Rob van der Ouderaa <rouderaa at xs4all dot nl>
- Cc: "Ecos-Discuss at Sources dot Redhat. Com" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 21 Mar 2005 09:10:06 +0100
- Subject: Re: [ECOS] PC embedded i386 platform : clock runs 28 % too fast ?
- References: <JFEOIPDLKJBCLOBKEHMBOEBICEAA.rouderaa@xs4all.nl>
On Sat, Mar 19, 2005 at 07:03:10PM +0100, Rob van der Ouderaa wrote:
> Hi,
>
> Maybe somebody can shed some light on this strange
> behaviour. On an embedded Octagon 2050 PC with an 5x86 (intel compatible)
> CPU running at 128 MHZ
> the sense of time of the Ecos seems to be 28% too fast.
> The Ecos version used is version 2.0.
>
> >From a rough measurement with a stopwatch the following measurment is taken:
>
> Real measured time from stopwatch : 180 seconds
> Seconds as returned by the Ecos time() function : 231 seconds
>
> So the Ecos type of time is too fast. Is there a way to fix this ?
This can be configured
Take a look at the options under
CYGNUM_HAL_RTC_CONSTANTS
You might also find the test program clocktruth useful.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss