public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RTC doesn't work?
@ 2013-05-28 19:41 Lukas Riezler
  2013-05-29 15:09 ` [ECOS] " Felix R
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Riezler @ 2013-05-28 19:41 UTC (permalink / raw)
  To: ecos-discuss

Hi ecos-guys :)
 
I've a question depending on the real time clock in eCos (I try a port for FM3).
It seems it isn't working!
 
The returned value of cyg_current_time() is always 0!
It also seemy cyg_thread_delay(100) doesn't work...
 
I tried a "hard" read of the value of the systick register, and this isn't 0!
 
while(1)
{
HAL_READ_UINT32(CYGARC_REG_SYSTICK_BASE+CYGARC_REG_SYSTICK_VALUE, timerVal0);
timerVal2= cyg_current_time();
 
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

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

* [ECOS] Re: RTC doesn't work?
  2013-05-28 19:41 [ECOS] RTC doesn't work? Lukas Riezler
@ 2013-05-29 15:09 ` Felix R
  0 siblings, 0 replies; 2+ messages in thread
From: Felix R @ 2013-05-29 15:09 UTC (permalink / raw)
  To: ecos-discuss

i found a issue in your code, but i this is only a typo in the demo:

while(1) 
{ 
HAL_READ_UINT32(CYGARC_REG_SYSTICK_BASE+CYGARC_REG_SYSTICK_VALUE,
timerVal0); 
timerVal*2*= cyg_current_time(); 
  
printf("%u\n", timerVal0); //it's okay...i counts down! 
printf("%u\n", timerVal*1*); //always 0 :-( 
} 





--
View this message in context: http://sourceware-org.1504.n7.nabble.com/RTC-doesn-t-work-tp233422p233568.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

-- 
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:[~2013-05-29 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 19:41 [ECOS] RTC doesn't work? Lukas Riezler
2013-05-29 15:09 ` [ECOS] " Felix R

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