On a timing logger, the RTC agrees closely with an external reference while the board sits idle. Once external equipment starts exercising an I/O line, the frequency counter reports occasional failures. Changing the load capacitors moves the idle reading a little, but the anomalies remain. For an STM32G030 design, review how PC13 is wired and used before replacing the 32.768 kHz crystal.
Identify the package and check the exact erratum
Section 2.2.7 of ST's STM32G030x6/x8 errata, ES0486, identifies PC13 transitions as a source of LSE disturbance and lists no vendor workaround. The Rev 7 summary includes the issue in all three listed revision groups. In the STM32G030CxT LQFP48 package, PC13, PC14-OSC32_IN and PC15-OSC32_OUT are pins 1, 2 and 3, respectively. Check the pin table separately for smaller packages. If PC13 is unavailable or the only correlation is with standby transitions, inspect the waveform, reset cause and other errata against the actual hardware. The errata provides no per-transition frequency shift, disturbance shape or acceptable toggle count. It does not establish that a capacitor change or drive setting will solve the issue. ST ES0486, section 2.2.7 ST DS12991 package and pin tables
PC13 may be labelled simply as an input or wake line on the schematic. Check the pin table and firmware to see whether it serves as an RTC output, timestamp, tamper input or GPIO. Then capture its actual level changes in the test. In ST's public forum, an STM32G070 user reported that attaching a meter or changing the load affected the reading when PC13 was configured as RTC_OUT1. It is a useful troubleshooting lead. The device and measurement conditions differ, so its reported figures should stay with that board. ST Community report on PC13 as RTC_OUT
Capture the clock and suspected interference on the same time base
In run-mode diagnostic firmware, use RM0454 to select LSE for MCO with a divide-by-one prescaler, and find a usable MCO pin in the package. PA8 is one candidate on LQFP48 if the board does not use it for another function. Confirm the selected MCO source is settled after switching. Connect one scope channel to PC13 and the other to MCO with a shared time base. Trigger on a PC13 transition or on a clock pulse or period outside its idle distribution. This digital measurement avoids adding probe capacitance directly to the crystal loop. If supply behaviour needs checking, monitor the MCU supply on another channel with a suitable local ground reference. ST RM0454, section 5.2.14 and RCC_CFGR MCO selection
At the nominal 32768 Hz, one period is 30.518 µs. Suppose the measurement point loses one complete count edge during a disturbance and there is no later compensating edge. A one-second gate sees one fewer count, equivalent to roughly −30.5 ppm. Over a ten-second gate, that same event contributes roughly −3.05 ppm. The average reading depends on the gate. A ten-second calibration reading alone can miss an anomalous period near a PC13 edge. This is an exercise in counter resolution, with no prediction that this device loses exactly one edge. Look for short or long periods or stoppage within the expected roughly 30.5 µs interval, then check accumulated RTC error on a longer record.
Retain the original RTC calibration settings and values in the diagnostic build. When smooth calibration is enabled, the RTC calibration output, a seconds pulse and the raw LSE path are different measurement points. After moving the PC13 function for a test, record which observed line carries raw LSE and which carries a divided or calibrated RTC signal. Capture the seconds edge from an external standard as well and compare both individual period anomalies and accumulated error over an hour. A final seconds difference alone cannot distinguish gradual frequency error, normal calibration activity or a short interruption of the clock.
Run three comparisons on the same board
First hold PC13 static at a level permitted by the application and record a baseline with the same supply, temperature and crystal configuration. Then restore its actual function with the signal and load present when the problem occurs. If the function can be moved to another pin, try that on a controlled prototype and keep PC13 static. Preserve the PC13 and MCO timelines in all three records so timing correlation can inform the diagnosis. Log differences in edge shape or loading, and any changes to power return paths when moving the signal. The datasheet also limits the speed and load of PC13 through PC15 in output mode and prohibits using them as current sources, for example to drive an LED. Confirm the use is within those limits even if the probed logic level looks clean. ST DS12991 pin limitations
If the tests show a clear correlation, consider moving the function in the next board revision and requalify low-power wake, alarm output and timing during supply loss. For existing boards, use the fault rate under representative conditions to assess whether they meet the product requirement. If anomalies persist with PC13 static, investigate the crystal circuit with AN2867. Check the return route for its load capacitors, nearby switching traces and stray capacitance added by test points. If run-mode MCO is unavailable on battery backup, record accumulated RTC time across a main-supply interruption and compare it with an external reference. ST AN2867 oscillator design guidelines
Log the number of stimulus transitions as well as the observation time. Two ten-minute runs with ten and ten thousand transitions give different evidence even if neither records a fault. Build a fixed sequence from actual device operations, list the expected edge count for each action, and verify that the capture system has no blind intervals. Record supply voltage and the tested operating range so the next lot can be checked under the same conditions.
Give sourcing or failure-analysis staff records that let them reproduce the symptom. Include the full MCU ordering code and revision, PCB revision, crystal manufacturer's part and lot, installed load capacitors, firmware build, PC13 function and simultaneous waveforms. Use those records to see whether the symptom follows circuit activity before comparing the original and candidate crystal on the same board design with the same pin sequence. That preserves separate evidence for static frequency error, intermittent clock anomalies and faults associated with GPIO activity.
