s32k312 RTC time never changes RTC interrupts can be generated

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

s32k312 RTC time never changes RTC interrupts can be generated

Jump to solution
724 Views
guochuan
Contributor III

hi all

The project uses the internal RTC, the configured clock uses the external 32768Hz, the interrupt of RTC can be generated normally, call Rtc_Ip_GetTimeDate function, the obtained time is kept unchanged, check the clock is enabled, call Rtc_Ip_SetTimeDate function can write the time normally.

clock config:

guochuan_0-1678521584986.png

  • The function call flow is configured as follows

guochuan_1-1678521737339.png

Please help guide where the problem might be

thanks

0 Kudos
1 Solution
668 Views
guochuan
Contributor III

hi @Robin_Shen 

thank you reply.

Yes, RTC registers are always counting. Using Rtc_Ip_GetTimeDate to get the time is always constant.

guochuan_0-1678842235877.png

guochuan_1-1678842284019.png

rtc does not run without debugging.

guochuan_3-1678842952311.png

Please help guide, thank you.

 

View solution in original post

0 Kudos
3 Replies
677 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Sorry for the delay.
Did you observe the RTC register during debugging to check whether the counter is increasing?
Is the data obtained by Rtc_Ip_GetTimeDate normal when not debugging?


Best Regards,
Robin

0 Kudos
669 Views
guochuan
Contributor III

hi @Robin_Shen 

thank you reply.

Yes, RTC registers are always counting. Using Rtc_Ip_GetTimeDate to get the time is always constant.

guochuan_0-1678842235877.png

guochuan_1-1678842284019.png

rtc does not run without debugging.

guochuan_3-1678842952311.png

Please help guide, thank you.

 

0 Kudos
631 Views
guochuan
Contributor III

The problem of RTC has been solved. AUTOSAR MCAL does not support the configuration of RTC. The test is normal after manual configuration。

0 Kudos