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

nrf52 internal RC configuration

I'm using the ble_app_template of SDK11. but I dont have an external oscillator, so the run time freeze at ble_stack_init

in this answer, the solution is to relace NRF_CLOCK_LFCLKSRC_XTAL_20_PPM by NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION but I couldnt find NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION declaration on SDK 11.

where can I find this declaration?

thanks

Parents
  • softdevice_handler_init function has changed so that its first argument for clock (nrf_clock_lfclksrc_t) is changed from uint32 to structure defined in nrf_sdm.h

    so now you have to change your clock to (defined in examples\bsp\pca_xxxx.h)

    #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                                     .rc_ctiv       = 16,                                \
                                     .rc_temp_ctiv  = 0,                                \
                                     .xtal_accuracy = 0}
    

    nrf_clock_lf_cfg_t is well documented in nrf_sdm.h

Reply
  • softdevice_handler_init function has changed so that its first argument for clock (nrf_clock_lfclksrc_t) is changed from uint32 to structure defined in nrf_sdm.h

    so now you have to change your clock to (defined in examples\bsp\pca_xxxx.h)

    #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                                     .rc_ctiv       = 16,                                \
                                     .rc_temp_ctiv  = 0,                                \
                                     .xtal_accuracy = 0}
    

    nrf_clock_lf_cfg_t is well documented in nrf_sdm.h

Children
No Data
Related