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

Equivalent low-frequency clock source in nRF5 SDK 11.0.0?

Hi,

I've started using the nRF5 11.0.0 (89a8197) SDK on a board that does not include an external low-frequency CLK source.

When using the nRF52 0.9.2 SDK, we were recommended to use NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION as our LF CLK source.

What would be the recommendation for our LF CLK source definition now?

I can see nrf_clock_lf_cfg_t and NRF_CLOCK_LFCLKSRC as defined for each of the Development Kit boards (I'm using the pca10040 GCC Makefile on our custom board.)

Is the equivalent structure something like:

{ .source        = NRF_CLOCK_LF_SRC_RC,            \
  .rc_ctiv       = 16,                             \
  .rc_temp_ctiv  = 2,                              \
  .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}

Thanks, Max