Calibrate internal capacitors for the 32kHz xtal

Hi

I had a device that did not start up - because it was waiting for the 32KHz clock to be stable. 

So I tried to change the setting below from 15pF to 5pF and it started fine.
&lfxo {
    load-capacitors = "internal";
    load-capacitance-femtofarad = <5000>;
};
Is there a suggested way to calibrate this value for a given Xtal?

Br

     GoodOld

Parents Reply Children
  • So I tried to set the value to an impossible number to see what error message would come. 

    I got this:

    devicetree error: value of property 'load-capacitance-femtofarad' on /clocks/lfxo in C:/work/SapheZFirmware_ado_master/Lucid/build_2_9_1/mcuboot/zephyr/zephyr.dts.pre (5002) is not in 'enum' list in C:/ncs/v2.9.1/zephyr/dts/bindings\clock\nordic,nrf-lfxo.yaml ([4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000, 10500, 11000, 11500, 12000, 12500, 13000, 13500, 14000, 14500, 15000, 15500, 16000, 16500, 17000, 17500, 18000])

    It seems to me that it can be from 4pF to 18pF.

    Please explain.

    Regards 

       GoodOld

Related