[S32K312] Get the Current Time via RTC

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

[S32K312] Get the Current Time via RTC

ソリューションへジャンプ
752件の閲覧回数
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 解決策
732件の閲覧回数
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 返答(返信)
733件の閲覧回数
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

720件の閲覧回数
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

 

744件の閲覧回数
EdwinCYHuang
Contributor II

Here is my init function and result log.

123.jpg456.jpg

0 件の賞賛