cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32F4 HAL Driver, RTC

grzegorz
Associate III

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.

1 REPLY 1

@ST Community​ 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..