Oscilloscope probes puts a BIG load on the crystal - so big that it may not run once you remove the probes again.
Usage of 12pF loading caps with a 12 pF crystal is almost surely wr0ng. You need to use the formula to calculate them, they should be close to twice as big IMHO. That would also explain why it only works with the scope attached...
I think so too, so I bought a capacitor with a larger capacity to prepare for testing. Thank you for your reply
Is this a custom board and if so have you had a review don on this ? If not we can have a look at the design if you want, either here or in a new ticket(private if so needed).
From our design guide here, General PCB design guidelines for nRF52 series :
The load capacitors, Ccap, are connected to the crystal and the values of the Ccap are given by the formula:
Ccap = 2*CL – C_pcb – C_pin
CL is the load capacitance of the crystal in use and can be found in the datasheet of the crystal.
C_pcb + C_pin is approximately 4 pF for the HFXO pins and approximately 5 pF for the LFXO pins.
More details can be found in the whitepaper "Crystal Oscillator Design Considerations". Please note that this paper is written for older chips (not nRF51/52) and that the input capacitance is given by: C_pcb + C_pin and not 1 pF, as it's stated in the whitepaper.
So for you 12pF CL you would want a value of around 20pF
Regards,
Jonathan
Hello, I tried replacing the 12pf capacitor with a 20pf model, but the USB still doesn't work properly. Is there any other way to troubleshoot the issue?
If you want we can have a look at the schematic, if you don't want to share the design in a public ticket you can create a new private one.
I would start by testing some known software again to make sure that there are no SW issues.
If you want to test the 32MHz you can use the radio test sample, set the device in TX and use modulated, if the output signal is at the given freq then you will see how accurate the crystal is with the load it has.
Alternatively, you can probe the USB lines see what is happening if there is anything there even with the USB fail error.
Regards,
Jonathan