public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] debugging rtc clock counter value
@ 2003-09-22  6:48 Satish Kumar
  2003-09-22 12:17 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: Satish Kumar @ 2003-09-22  6:48 UTC (permalink / raw)
  To: ecos-discuss

Hi,
    i have programmed my timer for 10 micro sec rtc resolution, and
hence my CYGNUM_HAL_RTC_NUMERATOR is 1000000 and the
CYGNUM_HAL_RTC_DENOMINATOR is 100.  my clock speed is 48Mhz and 
using the 16 bit pre-scale , i have calculate my rtc time period as
30000.
     i have enabled the overide default clock setting in the ecos kernel
package..after doin all this, i m having problems in testing the
clocktruth.cxx program sucessfully. i have reported this problem quiet
no: of times but, couldn`t get any response on this issue..

   on reading the rtc->counter_value_lo() , i always get a 0 value and
it never gets updated..i have no idea whatz the problem..some one help
me how to debug this issue..

  is this the problem with some initialization routine in the clocks or
alaram functions..? in the kernel src..!

thanks
satish

-- 
Satish Kumar <satish@bvt.sc.sanyo.co.jp>


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

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

* Re: [ECOS] debugging rtc clock counter value
  2003-09-22  6:48 [ECOS] debugging rtc clock counter value Satish Kumar
@ 2003-09-22 12:17 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2003-09-22 12:17 UTC (permalink / raw)
  To: Satish Kumar; +Cc: eCos Discussion

On Mon, 2003-09-22 at 00:48, Satish Kumar wrote:
> Hi,
>     i have programmed my timer for 10 micro sec rtc resolution, and
> hence my CYGNUM_HAL_RTC_NUMERATOR is 1000000 and the
> CYGNUM_HAL_RTC_DENOMINATOR is 100.  my clock speed is 48Mhz and 
> using the 16 bit pre-scale , i have calculate my rtc time period as
> 30000.
>      i have enabled the overide default clock setting in the ecos kernel
> package..after doin all this, i m having problems in testing the
> clocktruth.cxx program sucessfully. i have reported this problem quiet
> no: of times but, couldn`t get any response on this issue..
> 
>    on reading the rtc->counter_value_lo() , i always get a 0 value and
> it never gets updated..i have no idea whatz the problem..some one help
> me how to debug this issue..
> 
>   is this the problem with some initialization routine in the clocks or
> alaram functions..? in the kernel src..!
> 

I don't recall seeing in any previous message that you wanted to run
your clock at 10us!  I can't see how this will ever work (at least not
on any processor eCos currently runs on) as the processor will be 
totally swamped handling interrupts from this device.

Can you set the timer to more sane values, e.g. 10ms, and see if you can
get the code to work?

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

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

end of thread, other threads:[~2003-09-22 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-22  6:48 [ECOS] debugging rtc clock counter value Satish Kumar
2003-09-22 12:17 ` Gary Thomas

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).