retroleds wrote:Rewolf probably has some thoughts on this...
Influence of lead length: yes, 2.5mm extra CAN influence timing, theoretically measureable, but not noticable. We're talking about less than 1pF here, and the standard load capacitance is 12.5pF with say +/-7pF for adjustment.
5mm lead length is no problem at all.
Old Tom made a good point: unstable oscillation.
This can sometimes be cured with a resistor of ~10M in parallel with the crystal.
But before you try the resistor:
remove any solder flux residue from the oscillator circuitry. Isopropanol is a good flux removal, or spirit.
Some low power microcontrollers are VERY sensitive in this regard - they won't oscillate reliably with even the tiniest traces of solder flux present. Some years ago I had this problem with a an MSP430F435-based design: on 15 out of 20 prototype boards the oscilaltor sometimes wouldn't start - just cleaned them and all was fine. This was a known problem of that µC, not a board design flaw.