The sketch used includes the file “RTC_SAMD21.h”. The clock source for XIAO_SAMD21 is a 32768 Hz crystal oscillator. I’m wondering if I can compensate the RTC module by setting some registers properly. Based on a tip from robert-hh, I will investigate the datasheet and code in a bit more detail.