public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] problems with RTC
@ 2007-04-10 12:15 Michele Paselli
  2007-04-11  9:13 ` Nick Garnett
  0 siblings, 1 reply; 2+ messages in thread
From: Michele Paselli @ 2007-04-10 12:15 UTC (permalink / raw)
  To: ecos-discuss

Hi all,

I'm developing a radio driver for an AT91 platform and I need to 
change the time granularity in order to make some precise latency 
measures. In order to have a frequency multiplied by 10 (1 KHz since 
the default is 100Hz) I multiplied by 10 the CYGNUM_HAL_RTC_DENOMINATOR 
parameter. I also modified the CYGNUM_KERNEL_TIMESLICE_TICKS parameter 
in order to have the same timeslice interval as I would have in the 
default conditions. The ticks are now indeed 1 every millisecond, but 
the radio driver does not seem to work properly anymore. In particular, 
the driver seems to miss come interrupts. The only call to a function 
related to timers in the driver is a timeout counter but I multiplied 
its value by 10 to have the same conditions as before. Can anyone 
suggest me a possible cause? I think that the conditions for the driver 
in terms of timing are the same as before, but maybe I'm missing 
something.

Thanks a lot in advance.

Michele


Naviga e telefona senza limiti con Tiscali     
Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom

http://abbonati.tiscali.it/adsl/


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] problems with RTC
  2007-04-10 12:15 [ECOS] problems with RTC Michele Paselli
@ 2007-04-11  9:13 ` Nick Garnett
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Garnett @ 2007-04-11  9:13 UTC (permalink / raw)
  To: Michele Paselli; +Cc: ecos-discuss

Michele Paselli <miguelon@tiscali.it> writes:

> Hi all,
> 
> I'm developing a radio driver for an AT91 platform and I need to 
> change the time granularity in order to make some precise latency 
> measures. In order to have a frequency multiplied by 10 (1 KHz since 
> the default is 100Hz) I multiplied by 10 the CYGNUM_HAL_RTC_DENOMINATOR 
> parameter. I also modified the CYGNUM_KERNEL_TIMESLICE_TICKS parameter 
> in order to have the same timeslice interval as I would have in the 
> default conditions. The ticks are now indeed 1 every millisecond, but 
> the radio driver does not seem to work properly anymore. In particular, 
> the driver seems to miss come interrupts. The only call to a function 
> related to timers in the driver is a timeout counter but I multiplied 
> its value by 10 to have the same conditions as before. Can anyone 
> suggest me a possible cause? I think that the conditions for the driver 
> in terms of timing are the same as before, but maybe I'm missing 
> something.

I don't have any suggestions for fixing your driver, in theory
everything you have done is correct. I have run many eCos
configurations with a 1KHz clock with no problems.

Something you should check is that the clock ticks are arriving at the
expected rate. Try running the clocktruth kernel test against a
stopwatch to check this.

-- 
Nick Garnett                                     eCos Kernel Architect
eCosCentric Limited     http://www.eCosCentric.com/   The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.    Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-11  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-10 12:15 [ECOS] problems with RTC Michele Paselli
2007-04-11  9:13 ` Nick Garnett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).