AnsweredAssumed Answered

HAL RTC SetDate Bug or some another way to do??

Question asked by Joy.Joshin.002 on Feb 23, 2017
Latest reply on Jun 6, 2017 by waclawek.jan

I am using STM32F103 in my new application. I have used STM32Cube to generate my code including Internal RTC. My
problem is that the time is ok saved when reseted but date is always reset. when i inspected the code i found that the HAL_RTC_SetDate() function is not setting the RTC_CNTH and RTC_CNTL registers appropriately. Is it a bug or is there any other way of doing this. when we add day shouldn't  the RTC_CNTH and RTC_CNTL added with (24hrs x 60 Mins x 60 Secs) this is not happening.