I'm trying to use the RTC on the FRDMKL25Z, but it doesn´t work propertly, the only way can the RTC works is whit the 1kHz LPO clock, but the second regiter changes every 32.768 seconds whit this lines of code:
/* Enable the RTC 32KHz oscillator */
SIM->SOPT1 &= ~SIM_SOPT1_OSC32KSEL_MASK;
SIM->SOPT1 |= SIM_SOPT1_OSC32KSEL(2); // 1kHz LPO
I need the second regiter changes every second but I can't make it, does any one help me?
MCUXpresso IDE v10.1.1