Author Topic: RTC library?  (Read 5544 times)

dlmorgan999

  • Newbie
  • *
  • Posts: 15
RTC library?
« on: October 25, 2014, 09:34:02 am »
I'm starting to play around with the WiFi functionality and decided to try the SetRTCbyNTP sketch.  I appear to be missing a library though.  I did quite a bit of Google searching but couldn't find anything that worked (I found some libraries but the methods weren't the same).  Here is the error I'm getting.  Can anyone help?

Code: [Select]
SetRTCbyNTP.ino:11:23: fatal error: rtc_clock.h: No such file or directory
compilation terminated.
Error compiling.

kd7eir

  • Newbie
  • *
  • Posts: 17
Re: RTC library?
« Reply #1 on: October 25, 2014, 10:28:06 am »
If I'm using 1.5.8 -
I found the rtc_clock.h in C:\Users\XXX\Documents\Arduino\libraries\DUE_RTC
I'm now getting the error that chip.h, which is called by rtc_clock.h, is missing.

If I use the 1.5.5-r2 from your all-in-one installer it gets to the point of this error:

SetRTCbyNTP.ino: In function 'void setup()':
SetRTCbyNTP:60: error: 'class RTC_clock' has no member named 'set_timestamp'
« Last Edit: October 25, 2014, 10:46:34 am by kd7eir »

Twistit

  • Newbie
  • *
  • Posts: 19
Re: RTC library?
« Reply #2 on: October 26, 2014, 12:57:15 am »
If i recall correctly Arduino IDE 1.5.8 is not supported by DigiX. however i did get it to work.
To get it to work i grabbed Digistump1.5Addons-v092.zip from http://sourceforge.net/projects/digistump/files/

Dropped the hardware folder in the Arduino folder.

I had to adjust the gcc in platform.txt under the sam folder to get the addons to play nice with 1.5.8:
compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/

And Due RTC is not the right one as far as i know, the correct one (attached to my post) i dropped in the above sam folder under librarie's.

Do mind, i have no idea what i'm doing! I just know i fixed it like this.. Possible i broke some other stuff in the process ;)

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: RTC library?
« Reply #3 on: November 08, 2014, 05:54:29 pm »
Twistis - those are the right modifications - the next release (coming soon) will support 1.5.8 out of the box and I'll include the RTC library as well (didn't realize I missed it!)

Thanks!