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

What is error_code 7 in sd_softdevice_enable?

It works with SDK v12.3 and soft device 3.0.0.  Does not after porting to 15.2.  This is a custom board (extremely common configuration with single 32Mhz crystal) that serves only as a simple beacon. 

NRF_SDH_CLOCK_LF_SRC = 0
NRF_SDH_CLOCK_LF_RC_CTIV = 16
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV = 2
NRF_SDH_CLOCK_LF_ACCURACY = 0

Thank you

  • That's in  the documentation

    #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7)
    Invalid Parameter.


    NRF_ERROR_INVALID_PARAM Invalid clock source configuration supplied in p_clock_lf_cfg.

  • Thanks.  I channged NRF_SDH_CLOCK_LF_ACCURACY to NRF_CLOCK_LF_ACCURACY_500_PPM and it is working now.