S32K314 RTC code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K314 RTC code

1,379件の閲覧回数
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 返答(返信)

551件の閲覧回数
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,372件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@abhijith_r

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

1,333件の閲覧回数
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,321件の閲覧回数
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,361件の閲覧回数
abhijith_r
Contributor III
Hi Senlent,
Thanks for the quick reply. I got your message.
0 件の賞賛
返信