High speed clock using external 32mHz crystal

Hi,

I have a custom board with an external crystal at 32 MHz. How should I configure the clock using nRF Connect SDK 2.5.0, so it can use external crystal?

Thank you

Parents
  • Hi,

    If you are using one of the protocol stacks from Nordic that uses the radio (Bluetooth, Thread, Zigbee, etc), the protocol stack will automatically start the external 32 MHz crystal when it is needed, as this clock source is required for reliable operation of the radio.

    If you want to have the clock running in the application, you can request it as suggested by  or through the function mpsl_clock_hfclk_request() if you have a protocol stack enabled. Note that HFXO will increase the current consumption of the chip quite a bit when it is running, so it is normally only recommended to run it when you require the increased accuracy of the HFCLK compared to using the HFINT source (which is used by default whenever the HFXO is not explicitly started).

    Best regards,
    Jørgen

  • Hi, Could you please advise, I have a board without an external low-frequency crystal, only with a high-frequency one. I opened the Beacon example; do I need to perform any actions to ensure its proper functionality on my board? If I add the parameter CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to proj.conf, the code works, but the phone cannot detect the device. Without it code just freezes.

Reply Children
No Data
Related