Home › Evil Mad Scientist Forums › Other kit and product support › Getting errors when loading alpha clock firmware
- This topic has 11 replies, 2 voices, and was last updated 11 years, 3 months ago by Windell Oskay.
-
AuthorPosts
-
September 13, 2013 at 12:12 pm #20257dompelParticipant
Trying to load the alpha clock firmware and getting the following error:
AlphaClock.ino: In function ‘void checkButtons()’:AlphaClock:268: error: ‘minute’ was not declared in this scopeAlphaClock:269: error: ‘hour’ was not declared in this scopeAlphaClock:357: error: ‘adjustTime’ was not declared in this scopeAlphaClock:361: error: ‘RTC’ was not declared in this scopeAlphaClock:361: error: ‘now’ was not declared in this scopeAlphaClock:365: error: ‘adjustTime’ was not declared in this scopeAlphaClock:368: error: ‘RTC’ was not declared in this scopeAlphaClock:368: error: ‘now’ was not declared in this scopeAlphaClock:375: error: ‘adjustTime’ was not declared in this scopeAlphaClock:379: error: ‘RTC’ was not declared in this scopeAlphaClock:379: error: ‘now’ was not declared in this scopeAlphaClock:383: error: ‘adjustTime’ was not declared in this scopeAlphaClock:387: error: ‘RTC’ was not declared in this scopeAlphaClock:387: error: ‘now’ was not declared in this scopeAlphaClock:517: error: ‘RTC’ was not declared in this scopeAlphaClock:517: error: ‘now’ was not declared in this scopeAlphaClock.ino: In function ‘void EndVCRmode()’:AlphaClock:924: error: ‘now’ was not declared in this scopeAlphaClock.ino: In function ‘void setup()’:AlphaClock:947: error: ‘RTC’ was not declared in this scopeAlphaClock:947: error: ‘setSyncProvider’ was not declared in this scopeAlphaClock:948: error: ‘timeStatus’ was not declared in this scopeAlphaClock:948: error: ‘timeSet’ was not declared in this scopeAlphaClock:963: error: ‘setTime’ was not declared in this scopeAlphaClock.ino: In function ‘void loop()’:AlphaClock:1066: error: ‘second’ was not declared in this scopeAlphaClock:1121: error: ‘hour’ was not declared in this scopeAlphaClock:1122: error: ‘minute’ was not declared in this scopeAlphaClock.ino: In function ‘void processSerialMessage()’:AlphaClock:1214: error: ‘time_t’ was not declared in this scopeAlphaClock:1214: error: expected `;’ before ‘pctime’AlphaClock:1218: error: ‘pctime’ was not declared in this scopeAlphaClock:1221: error: ‘pctime’ was not declared in this scopeAlphaClock:1221: error: ‘setTime’ was not declared in this scopeAlphaClock:1227: error: ‘RTC’ was not declared in this scopeAlphaClock:1227: error: ‘now’ was not declared in this scopeAlphaClock.ino: In function ‘void UpdateDisplay(byte)’:AlphaClock:1669: error: ‘adjustTime’ was not declared in this scopeAlphaClock:1671: error: ‘RTC’ was not declared in this scopeAlphaClock:1671: error: ‘now’ was not declared in this scopeAlphaClock.ino: In function ‘void AdjDayMonthYear(int8_t, int8_t, int8_t)’:AlphaClock:1763: error: ‘time_t’ was not declared in this scopeAlphaClock:1763: error: expected `;’ before ‘timeTemp’AlphaClock:1765: error: ‘timeTemp’ was not declared in this scopeAlphaClock:1765: error: ‘year’ was not declared in this scopeAlphaClock:1767: error: ‘month’ was not declared in this scopeAlphaClock:1773: error: ‘day’ was not declared in this scopeAlphaClock:1788: error: ‘hour’ was not declared in this scopeAlphaClock:1788: error: ‘minute’ was not declared in this scopeAlphaClock:1788: error: ‘second’ was not declared in this scopeAlphaClock:1789: error: ‘setTime’ was not declared in this scopeAlphaClock:1791: error: ‘RTC’ was not declared in this scopeAlphaClock:1791: error: ‘now’ was not declared in this scopeAlphaClock.ino: In function ‘void TimeDisplay(byte, byte)’:AlphaClock:1805: error: ‘second’ was not declared in this scopeAlphaClock:1826: error: ‘hour’ was not declared in this scopeAlphaClock:1852: error: ‘minute’ was not declared in this scopeAlphaClock:1994: error: ‘day’ was not declared in this scopeAlphaClock:1996: error: ‘month’ was not declared in this scopeAlphaClock:2023: error: ‘year’ was not declared in this scopeAlphaClock.ino: In function ‘void SerialPrintTime()’:AlphaClock:2110: error: ‘time_t’ was not declared in this scopeAlphaClock:2110: error: expected `;’ before ‘timeTmp’AlphaClock:2112: error: ‘timeTmp’ was not declared in this scopeAlphaClock:2112: error: ‘hour’ was not declared in this scopeAlphaClock:2113: error: ‘minute’ was not declared in this scopeAlphaClock:2114: error: ‘second’ was not declared in this scopeAlphaClock:2116: error: ‘weekday’ was not declared in this scopeAlphaClock:2116: error: ‘dayStr’ was not declared in this scopeAlphaClock:2118: error: ‘day’ was not declared in this scopeAlphaClock:2120: error: ‘month’ was not declared in this scopeAlphaClock:2120: error: ‘monthShortStr’ was not declared in this scopeAlphaClock:2122: error: ‘year’ was not declared in this scopeAlphaClock.ino: In function ‘void EESaveSettings()’:AlphaClock:2289: error: ‘RTC’ was not declared in this scopeAlphaClock:2289: error: ‘now’ was not declared in this scopeOriginally, I thought maybe my version of Time was too new so I deleted it and installed the older version and it didn’t help.September 13, 2013 at 1:21 pm #21444Windell OskayKeymasterYes, it looks like you do not have the (correct) time library installed.
You haven’t included the first few lines of the error list– which are the ones that usually tell you what the “root” error was. But, if I remove the Time library (by commenting out line the line that says #include <Time.h>, I do get a similar set of errors.So, it sounds like you either have the wrong version of the time library, or it’s installed in the wrong location.September 13, 2013 at 2:24 pm #21445dompelParticipantWhich version should I be looking for?
September 13, 2013 at 2:40 pm #21446Windell OskayKeymasterUse the version that is indicated in our documentation, available for download here: http://playground.arduino.cc/Code/Time
The download (Time.zip) includes three different libraries. Move all three of them into your ‘libraries’ folder and restart Arduino.September 13, 2013 at 3:31 pm #21447dompelParticipantThey are in there. I just deleted them and replaced them again, restarted arduino ide, and getting the same error. Sktch > Import Library shows Time installed as well.
September 13, 2013 at 3:48 pm #21448Windell OskayKeymasterOne check you can do is to see if the Time example sketches will compile.
File Menu > Examples> Time > TimeRTCSee if that sketch will verify, or if you get the same set of errors.September 16, 2013 at 11:02 am #21449dompelParticipantHey,
I don’t have TimeRTC. I do have TimeRTCLog and TimeRTCSet.I tried Log and got this error:TimeRTCLog:16: error: ‘time_t’ has not been declaredTimeRTCLog:16: error: ‘time_t’ has not been declaredTimeRTCLog:17: error: variable or field ‘showTime’ declared voidTimeRTCLog:17: error: ‘time_t’ was not declared in this scopeTimeRTCLog:19: error: variable or field ‘showDuration’ declared voidTimeRTCLog:19: error: ‘time_t’ was not declared in this scopeTimeRTCLog:16: error: ‘time_t’ does not name a typeTimeRTCLog.pde: In function ‘void setup()’:TimeRTCLog:20: error: ‘RTC’ was not declared in this scopeTimeRTCLog:20: error: ‘setSyncProvider’ was not declared in this scopeTimeRTCLog.pde: In function ‘void loop()’:TimeRTCLog:35: error: ‘time_t’ was not declared in this scopeTimeRTCLog:35: error: expected `;’ before ‘duration’TimeRTCLog:37: error: expected `;’ before ‘timeNow’TimeRTCLog:38: error: ‘prevEventTime’ was not declared in this scopeTimeRTCLog:40: error: ‘duration’ was not declared in this scopeTimeRTCLog:40: error: ‘timeNow’ was not declared in this scopeTimeRTCLog:41: error: ‘timeNow’ was not declared in this scopeTimeRTCLog:41: error: ‘duration’ was not declared in this scopeTimeRTCLog:42: error: ‘prevEventTime’ was not declared in this scopeTimeRTCLog.pde: At global scope:TimeRTCLog:47: error: ‘time_t’ has not been declaredTimeRTCLog:47: error: ‘time_t’ has not been declaredTimeRTCLog.pde: In function ‘void logEvent(int, boolean, int, int)’:TimeRTCLog:55: error: ‘showTime’ was not declared in this scopeTimeRTCLog:59: error: ‘showDuration’ was not declared in this scopeTimeRTCLog.pde: At global scope:TimeRTCLog:65: error: variable or field ‘showTime’ declared voidTimeRTCLog:65: error: ‘time_t’ was not declared in this scopeTimeRTCLog:86: error: variable or field ‘showDuration’ declared voidTimeRTCLog:86: error: ‘time_t’ was not declared in this scopeSeptember 16, 2013 at 12:34 pm #21450Windell OskayKeymaster>I don’t have TimeRTC. I do have TimeRTCLog and TimeRTCSet.
Then, please install the correct version of the library– the one available for download at the link that I gave you earlier, and is also listed in our documentation. DO NOT use the version from PJRC.September 16, 2013 at 1:05 pm #21451dompelParticipantSorry to do this… Can you confirm this file: http://playground.arduino.cc/uploads/Code/Time.zip is correct?
September 16, 2013 at 1:22 pm #21452Windell OskayKeymasterYes, I’ve just downloaded a fresh copy and verified that it’s the right one. If it is the right one, and it’s installed correctly, you should see File > Examples > Time > Examples > TimeRTC
September 18, 2013 at 9:18 am #21453dompelParticipantThanks Windell. Working now!
September 18, 2013 at 12:06 pm #21454Windell OskayKeymasterAwesome, thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.