S32K312 RTC ISSUE

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

S32K312 RTC ISSUE

2,350件の閲覧回数
subhani
Contributor I

Writing the time and are working fine.

while reading the time and date, year also changing like seconds from 1970 to whatever the value im giving in year variable.


If I am writing the year as 1970 and reading the time and date is fine the year is not changing in this case. But if i write other than 1970 it is starting to change.

I am attaching the screen recorded video and my project please provide solution as possible. 

0 件の賞賛
返信
3 返答(返信)

1,808件の閲覧回数
subhani
Contributor I

can I get example project for RTC with API interrupt and alarm interrupt.

0 件の賞賛
返信

1,805件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

2,332件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @subhani,

The result_buf struct must not be read before the Rtc_Ip_GetTimeDate() function is complete, becasue result_buf->year is reset to 1970 every time the function called. The driver then calculates the correct year.

danielmartynek_0-1704810518666.png

 

 

Regards,

Daniel

0 件の賞賛
返信