This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[RTC]: Clock Time reset after power off the module

Other Parts Discussed in Thread: ASH, CC2650

Dear TI,

I am using CC2560DK for implementing my application. I tried to display time using clock API "Seconds_set" unix epoch time. It displays the time, starts from which I set in call back. But once I power on the board, the clock starts from the same value  which I set in call back. I want to update it regularly without caring of switch on/off the device. 

Please suggest me the way to resolve this~

Thanks n Regards

  • Hello,
    There is not clock that retains it value during power loss (no battery or power) without having any clock reference running. If you want to have a precise clock still after power loss and hard resets you would have to implement another device to synchronize with on power on. This device would have to always have a reference clock running. If you want to restore the last known value you could set up a periodic task to write the current time to flash and on boot write this value to your clock, although this would mean that your time would be off (incorrect) by after a reset.

    To write to flash , please look at the SNV section in chapter 3.10.4 of the Software Developers Guide (included in SDK and also http://ti.com/lit/SWRU393)
  • Thanks Eirik V,

    But it makes me little confusing to implement with other device. Could you please let me know any other simplified method to do so OR any example which used the RTC to display the current date/time (not depends on device power on/off).
    Please.

    Thanks n Regards
  • Hello Ash,
    Sorry, I don't have a specific example for this. To be able to get the current date/time you would need to connect to a time-server through Wifi or a gateway. The CC2650 device does not have any inherent knowledge about data and time. You have to design a system that is able to retrieve the current time and keep track of it.