If the door stays still and the RTC keeps time, verify the input voltage at sampling before replacing the crystal. In a filtered level-detection configuration that uses the internal pull-up, the STM32G0x1 can precharge the TAMP input before sampling. ST defines precharge duration, sampling frequency and the required consecutive active samples as separate settings. If cable or board capacitance slows the rise on an open contact, the sampling point can still see the wrong logic level with a correct RTCCLK.
Separate charging time from the filter count
Consider a board with a 32.768 kHz NDK NX3215SA and confirm that RTCCLK actually uses LSE. One clock period is about 30.5 microseconds. TAMPPRCH allows one, two, four or eight RTCCLK cycles, so one cycle is about 30.5 microseconds and eight are about 244 microseconds. Increasing the number of samples required by TAMPFLT does not lengthen each precharge interval. If the input is consistently below its intended threshold at the sampling point, repeated samples can simply repeat the wrong result. That symptom does not establish a frequency fault.
Collect the evidence at the contact input
Verify the crystal and loading against the approved build. NDK offers 6, 9 and 12.5 pF NX3215SA variants. Confirm the active RTC clock source and read back the actual input configuration after backup-domain handling. Use a high-impedance measurement at the contact input and compare the installed wiring with a short controlled bench connection. Record both the open-contact rise and the closed-contact level. Check connector leakage, contamination and added capacitance before changing settings. Verify reliable detection and backup current on the intended hardware rather than concealing a wiring defect with filtering. Record timekeeping, contact operation and backup current as separate acceptance results.
Related selection guide: MERLIN Crystal Timing: Quartz crystals
Resource link: https://www.mecxtal.com.cn/en/products/quartz-crystals.html
