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" */
PE_DEBUGHALT();
}
and if I try to step over it goes and gets stuck in:
SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;
--> if ((RTC_CR & RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */
I found a similar discussion https://community.nxp.com/thread/302968?q=k10%20rtc 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.



PFB The RTC component configuration too...

Feel Free to ask any further questions.
Thanks in advance.
Regards,
Prafful Sagar:smileyhappy: