Digistump Forums
The DigiX => DigiX Support => Topic started by: dlmorgan999 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?
SetRTCbyNTP.ino:11:23: fatal error: rtc_clock.h: No such file or directory
compilation terminated.
Error compiling.
-
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'
-
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 ;)
-
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!