Check whether startup loaded alternate or default configuration words. The KDS DST1610A is a 32.768 kHz tuning-fork crystal. On a PIC32MZ EF design using it as the secondary oscillator reference, leaving the crystal unchanged does not guarantee that startup used the same enable and clock settings. Microchip states that an uncorrectable ECC error in the primary configuration words sets BCFGERR and causes the alternate words to be used. If the primary and alternate words both fail, BCFGFAIL is set and the device uses default configuration.
Interpret the two flags separately
Suppose one repair board starts normally and another behaves differently after a reset. If BCFGERR indicates the alternate words were used, check that they preserve the intended SOSC and timing settings. If BCFGFAIL indicates defaults, inspect the actual configuration instead of assuming the flag proves the secondary oscillator is on or off. A configuration integrity problem is not evidence that the external crystal is faulty. Conversely, the absence of either flag is not proof that oscillation started or that the resulting timebase meets its accuracy requirement.
Preserve startup evidence before changing the board
Capture RCON, the known firmware version and observable clock output before repeatedly clearing flags or rewriting configuration. Compare the approved primary and alternate configurations with the source selected at startup. Independently verify the low-frequency reference and the timing peripheral. If identical crystal variants are running with different startup configuration sources, investigate configuration validity through the approved manufacturing or repair procedure first. If the settings are confirmed equivalent but the crystal still does not start, inspect assembly, loading and the component itself. That keeps a reset-time configuration fault from being recorded as a crystal lot failure.
Related selection guide: MERLIN Crystal Timing: Choosing a 32.768 kHz Crystal, Oscillator or RTC Module by Backup Current and Temperature Accuracy
Resource link: https://www.mecxtal.com.cn/en/guides/rtc-timekeeping.html
