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

SOFTDEVICE_HANDLER_INIT

Hi,

I´ve been reading a lot of question about the duration of the SOFTDEVICE_HANDLER_INIT, and I've found that if a change the accuracy of the calibration it will be faster.

I'm using a PCA10040, with S132 12.1, and the accuracy that i was using in the project was NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM, that I've found in the PCA10040.h. So I've tried to define the clock_lf_cfg, using NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM, and calling the SOFTDEVICE_HANDLER_INIT, as the code below:

nrf_clock_lf_cfg_t clock_lf_cfg = {.source = NRF_CLOCK_LF_SRC_XTAL, .rc_ctiv = 0, .rc_temp_ctiv = 0, .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM};

// Initialize the SoftDevice handler module.
SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);

But I've got the same delay.

When I've called the softdevice init this way:

SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM, NULL);

the time to initialize was way better.

So what is the difference?

Best Regards.

Parents
  • Thanks for the response Petter, I've made a little confusion, it really tells the accuracy of the crystal. I'm using the nRF52 Development Kit(PCA10040), so the accuracy should be 250 ppm, right? But I've been reading some questions and some answers tell to use 20 ppm. Reading the documents of the API specification I've founded that the right way to use the SOFTDEVICE_HANDLER_INIT was the first one that I've posted, but the second way compiled and I've got faster initialization. I'm using SDK 12.1. I can use the NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM in the PCA10040 and it will initialize faster? If so, what is the right way to use it?

    Best Regards.

Reply
  • Thanks for the response Petter, I've made a little confusion, it really tells the accuracy of the crystal. I'm using the nRF52 Development Kit(PCA10040), so the accuracy should be 250 ppm, right? But I've been reading some questions and some answers tell to use 20 ppm. Reading the documents of the API specification I've founded that the right way to use the SOFTDEVICE_HANDLER_INIT was the first one that I've posted, but the second way compiled and I've got faster initialization. I'm using SDK 12.1. I can use the NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM in the PCA10040 and it will initialize faster? If so, what is the right way to use it?

    Best Regards.

Children
No Data
Related