AnsweredAssumed Answered

K10 RTC Configuration

Question asked by Prafful Sagar jhawer on Jun 22, 2016
Latest reply on Jun 22, 2016 by Kerry Zhou

Hi all,

I'm a newbie to kinetis MCUs and CW too. I'm trying to configure RTC on MK10DX64VLH5 which will display the time on LCD and print the date and time at some pre-defined intervals on an APS thermal printer. I have 2 crystals of 32.768Mhz each for SOSCI SOSCO - Connected to PTA18 and PTA19 respectively and OSCI, OSCO - Connected to XTAL32, EXTAL32. VBAT is also charged up to 3 Volts

For this i've been trying to configure RTC but every time I debug the debug gets halted in:


  /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */



and if I try to step over it goes and gets stuck in:


-->  if ((RTC_CR & RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */

I found a similar discussion   and tried to resolve as suggested there but failed. I'm sure im missing some smal details in the clock configuration.

PFB my MCu's clock configurations and suggest me what to do and how to go about this particular issue.

Clock Configuration1.jpgClock Configuration2.jpgClock Configuration3.jpg

PFB The RTC component configuration too...

RTC Configuration.jpg

Feel Free to ask any further questions.

Thanks in advance.


Prafful Sagar