[S32K312] Get the Current Time via RTC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[S32K312] Get the Current Time via RTC

Jump to solution
727 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
707 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
708 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

695 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

 

719 Views
EdwinCYHuang
Contributor II

Here is my init function and result log.

123.jpg456.jpg

0 Kudos