Getting errors when loading alpha clock firmware

Home Evil Mad Scientist Forums Other kit and product support Getting errors when loading alpha clock firmware

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #20257
    dompel
    Participant

    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 scope
    AlphaClock:269: error: ‘hour’ was not declared in this scope
    AlphaClock:357: error: ‘adjustTime’ was not declared in this scope
    AlphaClock:361: error: ‘RTC’ was not declared in this scope
    AlphaClock:361: error: ‘now’ was not declared in this scope
    AlphaClock:365: error: ‘adjustTime’ was not declared in this scope
    AlphaClock:368: error: ‘RTC’ was not declared in this scope
    AlphaClock:368: error: ‘now’ was not declared in this scope
    AlphaClock:375: error: ‘adjustTime’ was not declared in this scope
    AlphaClock:379: error: ‘RTC’ was not declared in this scope
    AlphaClock:379: error: ‘now’ was not declared in this scope
    AlphaClock:383: error: ‘adjustTime’ was not declared in this scope
    AlphaClock:387: error: ‘RTC’ was not declared in this scope
    AlphaClock:387: error: ‘now’ was not declared in this scope
    AlphaClock:517: error: ‘RTC’ was not declared in this scope
    AlphaClock:517: error: ‘now’ was not declared in this scope
    AlphaClock.ino: In function ‘void EndVCRmode()’:
    AlphaClock:924: error: ‘now’ was not declared in this scope
    AlphaClock.ino: In function ‘void setup()’:
    AlphaClock:947: error: ‘RTC’ was not declared in this scope
    AlphaClock:947: error: ‘setSyncProvider’ was not declared in this scope
    AlphaClock:948: error: ‘timeStatus’ was not declared in this scope
    AlphaClock:948: error: ‘timeSet’ was not declared in this scope
    AlphaClock:963: error: ‘setTime’ was not declared in this scope
    AlphaClock.ino: In function ‘void loop()’:
    AlphaClock:1066: error: ‘second’ was not declared in this scope
    AlphaClock:1121: error: ‘hour’ was not declared in this scope
    AlphaClock:1122: error: ‘minute’ was not declared in this scope
    AlphaClock.ino: In function ‘void processSerialMessage()’:
    AlphaClock:1214: error: ‘time_t’ was not declared in this scope
    AlphaClock:1214: error: expected `;’ before ‘pctime’
    AlphaClock:1218: error: ‘pctime’ was not declared in this scope
    AlphaClock:1221: error: ‘pctime’ was not declared in this scope
    AlphaClock:1221: error: ‘setTime’ was not declared in this scope
    AlphaClock:1227: error: ‘RTC’ was not declared in this scope
    AlphaClock:1227: error: ‘now’ was not declared in this scope
    AlphaClock.ino: In function ‘void UpdateDisplay(byte)’:
    AlphaClock:1669: error: ‘adjustTime’ was not declared in this scope
    AlphaClock:1671: error: ‘RTC’ was not declared in this scope
    AlphaClock:1671: error: ‘now’ was not declared in this scope
    AlphaClock.ino: In function ‘void AdjDayMonthYear(int8_t, int8_t, int8_t)’:
    AlphaClock:1763: error: ‘time_t’ was not declared in this scope
    AlphaClock:1763: error: expected `;’ before ‘timeTemp’
    AlphaClock:1765: error: ‘timeTemp’ was not declared in this scope
    AlphaClock:1765: error: ‘year’ was not declared in this scope
    AlphaClock:1767: error: ‘month’ was not declared in this scope
    AlphaClock:1773: error: ‘day’ was not declared in this scope
    AlphaClock:1788: error: ‘hour’ was not declared in this scope
    AlphaClock:1788: error: ‘minute’ was not declared in this scope
    AlphaClock:1788: error: ‘second’ was not declared in this scope
    AlphaClock:1789: error: ‘setTime’ was not declared in this scope
    AlphaClock:1791: error: ‘RTC’ was not declared in this scope
    AlphaClock:1791: error: ‘now’ was not declared in this scope
    AlphaClock.ino: In function ‘void TimeDisplay(byte, byte)’:
    AlphaClock:1805: error: ‘second’ was not declared in this scope
    AlphaClock:1826: error: ‘hour’ was not declared in this scope
    AlphaClock:1852: error: ‘minute’ was not declared in this scope
    AlphaClock:1994: error: ‘day’ was not declared in this scope
    AlphaClock:1996: error: ‘month’ was not declared in this scope
    AlphaClock:2023: error: ‘year’ was not declared in this scope
    AlphaClock.ino: In function ‘void SerialPrintTime()’:
    AlphaClock:2110: error: ‘time_t’ was not declared in this scope
    AlphaClock:2110: error: expected `;’ before ‘timeTmp’
    AlphaClock:2112: error: ‘timeTmp’ was not declared in this scope
    AlphaClock:2112: error: ‘hour’ was not declared in this scope
    AlphaClock:2113: error: ‘minute’ was not declared in this scope
    AlphaClock:2114: error: ‘second’ was not declared in this scope
    AlphaClock:2116: error: ‘weekday’ was not declared in this scope
    AlphaClock:2116: error: ‘dayStr’ was not declared in this scope
    AlphaClock:2118: error: ‘day’ was not declared in this scope
    AlphaClock:2120: error: ‘month’ was not declared in this scope
    AlphaClock:2120: error: ‘monthShortStr’ was not declared in this scope
    AlphaClock:2122: error: ‘year’ was not declared in this scope
    AlphaClock.ino: In function ‘void EESaveSettings()’:
    AlphaClock:2289: error: ‘RTC’ was not declared in this scope
    AlphaClock:2289: error: ‘now’ was not declared in this scope
    Originally, I thought maybe my version of Time was too new so I deleted it and installed the older version and it didn’t help.
    #21444
    Windell Oskay
    Keymaster

    Yes, 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.
    #21445
    dompel
    Participant

    Which version should I be looking for?

    #21446
    Windell Oskay
    Keymaster

    Use 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. 
    #21447
    dompel
    Participant

    They 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.

    #21448
    Windell Oskay
    Keymaster

    One check you can do is to see if the Time example sketches will compile.

    File Menu > Examples> Time > TimeRTC
    See if that sketch will verify, or if you get the same set of errors. 
    #21449
    dompel
    Participant

    Hey, 

    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 declared
    TimeRTCLog:16: error: ‘time_t’ has not been declared
    TimeRTCLog:17: error: variable or field ‘showTime’ declared void
    TimeRTCLog:17: error: ‘time_t’ was not declared in this scope
    TimeRTCLog:19: error: variable or field ‘showDuration’ declared void
    TimeRTCLog:19: error: ‘time_t’ was not declared in this scope
    TimeRTCLog:16: error: ‘time_t’ does not name a type
    TimeRTCLog.pde: In function ‘void setup()’:
    TimeRTCLog:20: error: ‘RTC’ was not declared in this scope
    TimeRTCLog:20: error: ‘setSyncProvider’ was not declared in this scope
    TimeRTCLog.pde: In function ‘void loop()’:
    TimeRTCLog:35: error: ‘time_t’ was not declared in this scope
    TimeRTCLog:35: error: expected `;’ before ‘duration’
    TimeRTCLog:37: error: expected `;’ before ‘timeNow’
    TimeRTCLog:38: error: ‘prevEventTime’ was not declared in this scope
    TimeRTCLog:40: error: ‘duration’ was not declared in this scope
    TimeRTCLog:40: error: ‘timeNow’ was not declared in this scope
    TimeRTCLog:41: error: ‘timeNow’ was not declared in this scope
    TimeRTCLog:41: error: ‘duration’ was not declared in this scope
    TimeRTCLog:42: error: ‘prevEventTime’ was not declared in this scope
    TimeRTCLog.pde: At global scope:
    TimeRTCLog:47: error: ‘time_t’ has not been declared
    TimeRTCLog:47: error: ‘time_t’ has not been declared
    TimeRTCLog.pde: In function ‘void logEvent(int, boolean, int, int)’:
    TimeRTCLog:55: error: ‘showTime’ was not declared in this scope
    TimeRTCLog:59: error: ‘showDuration’ was not declared in this scope
    TimeRTCLog.pde: At global scope:
    TimeRTCLog:65: error: variable or field ‘showTime’ declared void
    TimeRTCLog:65: error: ‘time_t’ was not declared in this scope
    TimeRTCLog:86: error: variable or field ‘showDuration’ declared void
    TimeRTCLog:86: error: ‘time_t’ was not declared in this scope
    #21450
    Windell Oskay
    Keymaster

    >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.
    #21451
    dompel
    Participant

    Sorry to do this… Can you confirm this file: http://playground.arduino.cc/uploads/Code/Time.zip is correct?

    #21452
    Windell Oskay
    Keymaster

    Yes, 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

    #21453
    dompel
    Participant

    Thanks Windell. Working now!

    #21454
    Windell Oskay
    Keymaster

    Awesome, thanks!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.