From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22218 invoked by alias); 28 May 2013 19:41:36 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 22207 invoked by uid 89); 28 May 2013 19:41:36 -0000 X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,KHOP_DNSBL_BUMP,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.21) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 28 May 2013 19:41:35 +0000 Received: from 3capp-gmx-bs31.server.lan ([172.19.170.83]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MC6gQ-1UYeKb0dhQ-008swI for ; Tue, 28 May 2013 21:41:33 +0200 Received: from [193.83.21.8] by 3capp-gmx-bs31.server.lan with HTTP; Tue May 28 21:41:33 CEST 2013 MIME-Version: 1.0 Message-ID: From: "Lukas Riezler" To: ecos-discuss@sourceware.org Content-Type: text/plain; charset=UTF-8 Date: Tue, 28 May 2013 19:41:00 -0000 Sensitivity: Normal Content-Transfer-Encoding: quoted-printable Subject: [ECOS] RTC doesn't work? X-SW-Source: 2013-05/txt/msg00049.txt.bz2 Hi ecos-guys :) =C2=A0 I've a question depending on the real time clock in eCos (I try a port for = FM3). It seems it isn't working! =C2=A0 The returned value of=C2=A0cyg_current_time() is always 0! It also seemy cyg_thread_delay(100) doesn't work... =C2=A0 I tried a "hard" read of the value of the systick register, and this isn't = 0! =C2=A0 while(1) { HAL_READ_UINT32(CYGARC_REG_SYSTICK_BASE+CYGARC_REG_SYSTICK_VALUE, timerVal0= ); timerVal2=3D cyg_current_time(); =C2=A0 printf("%u\n", timerVal0); //it's okay...i counts down! printf("%u\n", timerVal1); //always 0 :-( } Any ideas where my problems are? With kind regards, Lukas -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss