S32K314 RTC code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K314 RTC code

988 Views
abhijith_r
Contributor III

Hi,

I'm working on s32k314, currently trying to implement RTC. But in example projects it is not found. Does anyone have an example project of RTC implementation?

 

Regards,

Abhijith Raj

Tags (3)
0 Kudos
Reply
5 Replies

160 Views
Prasanth_C
Contributor II

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.

0 Kudos
Reply

981 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@abhijith_r

I sent you a private message, please check your message box.

942 Views
abhijith_r
Contributor III

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.

930 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@abhijith_r

Here you can modify the RTC Clock Source,then you can change "RTC_IP_CLOCK_SOURCE_X"

Senlent_0-1678240215047.png

 

0 Kudos
Reply

970 Views
abhijith_r
Contributor III
Hi Senlent,
Thanks for the quick reply. I got your message.
0 Kudos
Reply