[S32K312] Get the Current Time via RTC

cancel
Showing results for 
Search instead for 
Did you mean: 

[S32K312] Get the Current Time via RTC

Jump to solution
191 Views
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 Kudos
1 Solution
171 Views
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

View solution in original post

3 Replies
172 Views
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

159 Views
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

 

183 Views
EdwinCYHuang
Contributor II

Here is my init function and result log.

123.jpg456.jpg

0 Kudos