[S32K312] Get the Current Time via RTC

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

[S32K312] Get the Current Time via RTC

跳至解决方案
1,158 次查看
EdwinCYHuang
Contributor II

Hi Sir:

I have called the init function ( Rtc_Ip_Init -> Rtc_Ip_SetTimeDate -> Rtc_Ip_StartCounter ) , but when I try to get the hour , minutes and seconds via Rtc_Ip_GetTimeDate function . it doesn't change in every time.

 

thanks 

Edwin Huang

 

0 项奖励
回复
1 解答
1,138 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @EdwinCYHuang,

Can you double-check the RTC clock?

What clock source did you seletect, and is the source clock enabled?

 

Thak you,

BR, Daniel

在原帖中查看解决方案

3 回复数
1,139 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @EdwinCYHuang,

Can you double-check the RTC clock?

What clock source did you seletect, and is the source clock enabled?

 

Thak you,

BR, Daniel

1,126 次查看
EdwinCYHuang
Contributor II

Hi  danielmartynek

I find the answer for it , we have no external clock (SXOSC_CLK) .

I set it to internal clock and log will show update time.

internal clk.PNG

thanks for your response.

EdwinCYHuang

 

1,150 次查看
EdwinCYHuang
Contributor II

Here is my init function and result log.

123.jpg456.jpg

0 项奖励
回复