A board passes a frequency count while its MCO edge shape changes in a temperature chamber. Changing the threshold used on the same waveform also changes the displayed jitter. Clock routing and an output buffer sit between the 40 MHz quartz crystal and that pin. Verify the crystal's period separately from the output drive, load, and threshold used to observe the edge.
Freeze the HSE path, then check the pin and its compensation
ST's STM32H743 materials give an HSE range that includes 40 MHz. RM0433 describes routing HSE or another source to MCO and prescaling it. Confirm the actual device and crystal circuit, select HSE at MCO, and verify the pin's alternate function. The 40 MHz crystal produces a 25 ns period in the direct example. A divide-by-four comparison from the same HSE gives 100 ns. Capture the settings independently and exclude transition waveforms after routing or divider changes. The divided output verifies average frequency but does not preserve every cycle-to-cycle variation of the direct output.
The same manual describes I/O compensation as controlling pin transition slew. It provides a code based on process, supply, and temperature, and a way to select a software-specified code. For automatic compensation, enable the required CSI clock, read the compensation READY flag in SYSCFG, and verify which code is selected. An initialization write alone does not establish that compensation is operating. Stay within the specified supply range and do not copy another device's code without verifying the conditions.
Keep the raw capture for three threshold measurements
Hold temperature and probe position fixed, and capture the production configuration. At the receiving node, measure valid swing and levels. Then observe with a known low-loading setup and account for cables, termination, and probe capacitance. Use enough bandwidth to identify overshoot or a plateau and keep it fixed between runs. If a counter shares the node, a suitable buffer can keep its input impedance from disturbing the waveform.
For an example, the 10–90% range of a 3.3 V swing is 2.64 V. Crossing that span in 4.0 ns implies an average 0.66 V/ns. Taking 1.6 ns gives 1.65 V/ns. For a rough threshold-error estimate, a 33 mV equivalent disturbance divided by these slopes gives about 50 ps and 20 ps of time movement. These are example estimates, not device ratings. In the final analysis, use local slew at the actual threshold and state whether the disturbance is a peak or RMS value.
Recompute crossings at three thresholds with definitions held constant. If all crossings move together, compare the edges against the independent timebase. If the statistics vary near a slow slope or reflection, check the output conditions. Keep the 40 MHz quartz crystal, MCO route, and load fixed when testing compensation on and off. Use a deliberate load change as a separate control. A difference produced by the probe does not establish crystal instability.
Accept frequency and usable edges separately
Report mean frequency, timing at the actual receiver threshold, and high and low widths. If the period is regular but the edge crosses a threshold more than once or has too little swing, inspect GPIO speed, supply, compensation, and layout. If the direct and divided readings yield the same relative frequency offset, measure actual HSE frequency independently of the GPIO adjustment. Another approved clock node can help separate offsets common to the probing setup.
Compensation can affect multiple I/Os. Record other switching activity. At the bench, reduce nearby high-speed toggling temporarily and see whether threshold sensitivity remains, then restore full loading. Keep any associated supply and ground disturbance data. If the issue follows neighboring switching, examine the shared power path and coupling. If it persists in both cases, continue examining this output. Verify any electrical change before applying it to a lot.
Measure interchannel skew before comparing captures, and retain unaveraged waveforms. Averaging can hide jitter, reflections, and repeated threshold crossings. Keep individual crossing times and outliers, especially around the real receiver threshold. Derive percentage thresholds from the waveform levels at the test point, rather than using nominal supply voltage as the measured high level.
Where an approved second low-rate marker is available, capture it at the same time. If all crossing times move by a similar amount, repeat with an independent trigger to check the acquisition path. If only the output changes when its load changes, inspect that test node. This comparison helps reveal differences introduced by chamber feedthroughs or reconnection.
Before changing the 40 MHz quartz crystal, record soak time, voltage, compensation READY status, GPIO speed, divider, and probe load. If all samples change edge shape under the same load or configuration with frequency fixed, address the measurement node or I/O conditions. Investigate the crystal and load capacitors if a verified frequency error follows the sample under the same output and instrument settings.
