RTC related errors on NANO54415 DevKit

Discussion to talk about software related topics only.
Post Reply
pabloroblesgil
Posts: 2
Joined: Thu Jun 12, 2014 11:44 am

RTC related errors on NANO54415 DevKit

Post 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!
mbrown
Posts: 61
Joined: Tue Jan 29, 2013 7:12 pm

Re: RTC related errors on NANO54415 DevKit

Post 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.
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: RTC related errors on NANO54415 DevKit

Post 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.
pabloroblesgil
Posts: 2
Joined: Thu Jun 12, 2014 11:44 am

Re: RTC related errors on NANO54415 DevKit

Post 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!
User avatar
dciliske
Posts: 623
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: RTC related errors on NANO54415 DevKit

Post by dciliske »

No... you'll need to wire up a breakout for the chip you wish to use.
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply