2023-10-31 5:14 AM
Is there any inbuilt leap year setting in the onboard rtc of STM32L152RC. If not how to manually configure it. Source code also.
Thank You
2023-11-01 2:37 AM
Well, the RM0038 writes about this in section 20.1:
Compensations for 28-, 29- (leap year), 30-, and 31-day months are performed automatically. Daylight saving time compensation can also be performed.
Does it answer your question?
Regards
/Peter
BTW: please note that the STM32L1xx are already on NRND (Not Recommended for New Design) and should be replaced by other families of STM32 for longer term projects.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.