AnsweredAssumed Answered

FRDM-KL25Z how to get RTC work properly

Question asked by Peng Liang on Oct 23, 2012
Latest reply on Mar 18, 2013 by Pradyumna Kammardi



I am new to freescale.

I start on FRDM-KL25Z evaluation board. I am using cw 10.3 with PE. I added a RTC components using PE. I would like to measure the current consumed by RTC module. what I need to do is just run RTC keep time counting on. I set the time, and using the RTC_GetTime(RTC1_DeviceData, rtc) function which suppose to get the second, minute, hour, date, day, month, year values and stores into rtc object. however, when I run this in debug mode(using OpenSDA USB), I checked the rtc object. the value is just same as initial value. I dont know what is wrong. I did automatic initialize rtc device, and call  rtc_enable() function as well.

Can anyone give me a hint?


Thanks in advance.