Hello Alice.
both flags are zero, it is not the problem. i have investigated a little more futher and tried many others ways of reading the TSR. And what i see is that.
| RTC_HAL_GetDatetime(RTC,&date); |
RTC_HAL_ConvertDatetimeToSecs(&date, ×tamp);
Or if i simple try to read TSR timestamp = RTC_TSR;
i get the same result RTC_TSR value divided by 2.