2018-07-26 05:15 AM
There is a bug in HAL_RTC_SetDate() function. As usual it has asserts for input parameter. Unfortunately in version 1.7.4 there are asserts in lines 653 and 654 which test the datetmpreg variable which is always zero in case of RTC_FORMAT_BCD. Actual parameters are not checked and the assert always fails. The variable is not initialized by input parameters. I happens only for RTC_FORMAT_BIN. It was OK in the past. Somehow ST broke this in newer versions.
2018-08-08 12:55 PM
@ST Community