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:
The function call flow is configured as follows
Please help guide where the problem might be
thanks
Solved! Go to Solution.
hi @Robin_Shen
thank you reply.
Yes, RTC registers are always counting. Using Rtc_Ip_GetTimeDate to get the time is always constant.
rtc does not run without debugging.
Please help guide, thank you.
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
hi @Robin_Shen
thank you reply.
Yes, RTC registers are always counting. Using Rtc_Ip_GetTimeDate to get the time is always constant.
rtc does not run without debugging.
Please help guide, thank you.
The problem of RTC has been solved. AUTOSAR MCAL does not support the configuration of RTC. The test is normal after manual configuration。