Hi @nxf77486,
Thank you for your answer. RTC_CR_OSCE is well set to "1". I verified SR[TOF] and SR[TIF] bits and they are set to "0". Then the time counter should increment this value but it's not the case. The RTC_TSR counter stay always at the same value which is set at the beginning by RTC_SetDatetime().
There is the setup of my oscillator (It’s automaticaly genereted when I setup the clock sources) :
{
/* RTC clock gate enable */
CLOCK_EnableClock(kCLOCK_Rtc0);
if ((RTC->CR & RTC_CR_OSCE_MASK) == 0u) { /* Only if the Rtc oscillator is not already enabled */
/* Set the specified capacitor configuration for the RTC oscillator */
RTC_SetOscCapLoad(RTC, capLoad);
/* Enable the RTC 32KHz oscillator */
RTC->CR |= RTC_CR_OSCE_MASK;
}
/* Output to other peripherals */
if (enableOutPeriph) {
RTC->CR &= ~RTC_CR_CLKO_MASK;
}
else {
RTC->CR |= RTC_CR_CLKO_MASK;
}
/* Set the XTAL32/RTC_CLKIN frequency based on board setting. */
CLOCK_SetXtal32Freq(BOARD_XTAL32K_CLK_HZ);
/* Set RTC_TSR if there is fault value in RTC */
if (RTC->SR & RTC_SR_TIF_MASK) {
RTC -> TSR = RTC -> TSR;
}
/* RTC clock gate disable */
CLOCK_DisableClock(kCLOCK_Rtc0);
}
And it’s call in my main() by :
BOARD_InitBootClocks();
You will find below my RTC hardware configuration, I use VBAT too :

I don’t have FRDM-K64 board to test these kind of examples and I’m working with a MK64FX512xxx12 instead of MK64FN1M0xxx12..
Thank you.
Regards,
Mota