Question
HAL RTC SetDate Bug or some another way to do??
Posted on February 23, 2017 at 10:49
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.#cube-mx #hal-library