Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 12 months ago.
RTC reset issue on FRDM-K64F
Hi,
I'm running a RTC code in a FRDM-K64F that is based on Erik Olieman code http://developer.mbed.org/users/Sissors/code/RTC/.
My project is all in C instead of C++, and I'm using the mbed-src from github for all features.
My problem is:
I configure the RTC and it works properly until a reset occur, because when a reset occur all the RTC registers are cleared to their default values, so it lose all configured and counted date/time.
Is there any way to do not lose this values? Did someone have the same problem?
David,
As long as there is no power cycle, the K64F does keep time after a reset.
...kevin
posted by Kevin Braun 21 Nov 2014Sorry for delay
I could solve this issue :D
The main problem was the way I get the RTC value on my initialization code.
I solve the problem using this code:
RTC initialization code