Check whether firmware reads the subsecond register and the time register without reading the date register to finish the snapshot. In STM32F407 shadow-register mode, ST states that reading RTC_SSR locks both the time and date shadow values, whereas reading RTC_TR locks the higher-order date field. An RTC_DR read releases the lock. A 32.768 kHz KDS DST1610A can be oscillating and the underlying calendar can still be running while a loop that reads RTC_SSR and RTC_TR but omits RTC_DR displays the same second. That is a readout issue, not by itself evidence of a defective crystal.
Why does reading the date affect the next time read?
The lock keeps fields from one calendar snapshot consistent. At 23:59:59, for example, the subsecond and time reads can occur before midnight and a date read after midnight. Without a coherent snapshot those fields could describe no actual instant. Reading the date completes the held snapshot and releases it for a subsequent update. A display that only shows hours, minutes and seconds still needs its driver to complete the read sequence.
Test both an ordinary second and midnight
- Confirm that shadow mode is enabled and check the synchronization requirements in the reference manual. Log the raw calendar values using the documented complete read procedure. If subseconds are needed, take SSR, TR and DR in the proper sequence rather than mixing values from separate transactions.
- Reproduce the incomplete SSR-plus-TR path and the complete read path on the same firmware, waiting across at least one second boundary. If complete reads advance again, investigate the application path first. If they do not, check the RTC clock selection and oscillator separately.
- Include a midnight crossing to look for mixed records. If multiple tasks access the RTC, use a common controlled snapshot routine so one task cannot unexpectedly complete another's pending read. When shadow bypass is in use, validate the distinct read-consistency rules for that mode.
Related selection guide: MERLIN Crystal Timing: Migrating STM32F407 RTC Timing to a 32.768 kHz Crystal with an Existing Backup Domain
Resource link: https://www.mecxtal.com.cn/en/handbook/stm32f407-rtc-backup-domain.html
