Hello @abhijith_r ,yes your correct . in API there is no option to change clock source its default clock 0 only, RTC is working in Clock source 1.
Hi @Senlent
I am using S32K314 eval board. I added that code and in one example project and its working fine. In RTC IPL configuration, under GPTChannelConfigSet there is one option 'Rtc Channel Clock Source', it is set as "RTC_IP_CLOCK_SOURCE_2" in that example project.
But when I try to implement this in our project there is only one option "RTC_IP_CLOCK_SOURCE_0" and timer is not working properly. I can't change that to 2 via mex file.
But I manually edit that value and change to RTC_IP_CLOCK_SOURCE_2 but when I call get time it is showing some wrong value (like clock is running very fastly). Later I change it to RTC_IP_CLOCK_SOURCE_1 and its working fine. Why these options are not showing in mex file. How can I change this option through mex file.