Hi! I use STM32L051 RTC and twice during three days at +55 deg.C I have incorrect reading of time. For a 1 minute RTC counts 3599.87 s, at next minute all works as should be - 1 min after spending 1 min. Sometimes I get 62.7 s by 1 minute. Thanks.
// in 1/32768 parts of second, 1 hour (3600*32768) max. uint32_t cRTC::getCurrentTime32768(){ volatile uint32_t time = 0; volatile uint16_t takenTime = 0; volatile uint16_t takenSSR; volatile uint16_t dummy; //reading either RTC_SSR or RTC_TR ...