Page 1 of 1

RTC related errors on NANO54415 DevKit

Posted: Thu Jun 12, 2014 3:01 pm
by pabloroblesgil
Hi all,

I am using NANO54415 DevKit, had it up and running fairly quick.
I've been trying to use RTCGetTime with no success. It always returns 1.
I tried calling other related functions with same result.
These are:

-RTCGetTime
-RTCSetTime
-RTCSetSystemFromtRTCTime
-RTCSetRTCfromSystemTime

I haven't been able to find much more detail about the error other than knowing the function failed for some reason.
Any suggestions or pointers to what I am doing wrong will be much appreciated.
Cheers!

Re: RTC related errors on NANO54415 DevKit

Posted: Thu Jun 12, 2014 4:13 pm
by mbrown
Hm, just to clarify, what example are you running or are you making your own code?

If you're running on the NANO-Carrier board and trying to use rtc.h, that probably shouldn't work. The rtc.h file is meant to run with an offboard RTC that is on some of the other development boards, but not on the NANO-Carrier. If you're using the mcf5441x_rtc.h file, that will use the on chip rtc for the MCF5441X processor. This include is the same one that the OnChipRTC example uses.

The OnChipRTC example should work. I've loaded it into my module and it does return the time from the onboard module, though since it has to reload the time on powerup, this time is basically just a runtime. The example seems to not be loading the time from the ntp server appropriately for some reason, though it may just be that I can't see the server from where I am.

Re: RTC related errors on NANO54415 DevKit

Posted: Thu Jun 12, 2014 9:46 pm
by Ridgeglider
Hi Guys: I tried the C:\nburn\examples\NANO54415\OnChipRtc\main.cpp demo.
I found no connection to the 207.200.81.113 NTP server.
I changed it to: 198.123.30.132, or to "164.67.62.194" and both worked.

Re: RTC related errors on NANO54415 DevKit

Posted: Fri Jun 13, 2014 2:56 pm
by pabloroblesgil
Hey all!

Thanks for the tips. So, as you guessed correctly I was using rtc.h and since I am using NANO-ADPT-100CR there is no offboard RTC to communicate with.
Now, is there a carrier board for the NANO544415 which does have an offboard RTC? I must have a reliable time source even in the case of power-failure.
Thanks!

Re: RTC related errors on NANO54415 DevKit

Posted: Fri Jun 13, 2014 5:05 pm
by dciliske
No... you'll need to wire up a breakout for the chip you wish to use.

Re: RTC related errors on NANO54415 DevKit

Posted: Fri Jun 13, 2014 6:34 pm
by Ridgeglider