Hello @chaitanya_kalyani,
The S32K11x MCUs have a different vector table, you forgot to change it
// RTC_Interrupt (alarm)
S32_NVIC->ICPR[0] = (1 << (6 % 32));
S32_NVIC->ISER[0] = (1 << (6 % 32));
// RTC_Seconds_Interrupt
S32_NVIC->ICPR[0] = (1 << (7 % 32));
S32_NVIC->ISER[0] = (1 << (7 % 32));
Also, my description of the example posted here is not correct.
The RTC second interrupt is disabled in the VLPS mode, only the RTC alarm is enabled.
You need to enabled it in the RTC init function if you want to use it.
RTC->IER |= (1 << 4);
// [4] TSIE = 1 Time Seconds Interrupt Enabled
Regards,
Daniel