S32K314 RTC code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K314 RTC code

1,550 次查看
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

标记 (3)
0 项奖励
回复
5 回复数

722 次查看
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 项奖励
回复

1,543 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@abhijith_r

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

1,504 次查看
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.

1,492 次查看
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 项奖励
回复

1,532 次查看
abhijith_r
Contributor III
Hi Senlent,
Thanks for the quick reply. I got your message.
0 项奖励
回复