This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to check nRF52840 external low frequency crystal (32kHz) is connected or not?

Hi,

Using SDK 15.2.0 and SD S140_6_1_1.

I have two hardware of nRF52840, one has external LF crystal(32kHz) and another does not.

Want to run same firmware file in both hardware so Is there any way to detect external crystal is connected or not by firmware?

In our firmware I am using USB also.

Thanks,

Nirav Patel 

Parents
  • Hi Nirav

    You can not dynamically switch between clocks during operation. By default, all our SDK examples are set to use the external LF crystal, but you can easily switch to the internal RC or synthesized LF clock by editing the following parameters in your sdk_config.h file: NRFX_CLOCK_CONFIG_LF_SRC, CLOCK_CONFIG_LF_SRC, and NRF_SDH_CLOCK_LF_SRC(if you use the SoftDevice).

    Best regards,

    Simon

Reply
  • Hi Nirav

    You can not dynamically switch between clocks during operation. By default, all our SDK examples are set to use the external LF crystal, but you can easily switch to the internal RC or synthesized LF clock by editing the following parameters in your sdk_config.h file: NRFX_CLOCK_CONFIG_LF_SRC, CLOCK_CONFIG_LF_SRC, and NRF_SDH_CLOCK_LF_SRC(if you use the SoftDevice).

    Best regards,

    Simon

Children
No Data
Related