From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31810 invoked by alias); 22 Sep 2003 12:17:09 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 31754 invoked from network); 22 Sep 2003 12:17:08 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 22 Sep 2003 12:17:08 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id A714050D88B; Mon, 22 Sep 2003 06:17:07 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 9777150D88A; Mon, 22 Sep 2003 06:17:05 -0600 (MDT) From: Gary Thomas To: Satish Kumar Cc: eCos Discussion In-Reply-To: <20030922153543.143F.SATISH@bvt.sc.sanyo.co.jp> References: <20030922153543.143F.SATISH@bvt.sc.sanyo.co.jp> Content-Type: text/plain Organization: MLB Associates Message-Id: <1064233025.1015.11.camel@hermes> Mime-Version: 1.0 Date: Mon, 22 Sep 2003 12:17:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: [ECOS] debugging rtc clock counter value X-SW-Source: 2003-09/txt/msg00382.txt.bz2 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 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