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

Clock config of the MESH sdk

Hi,

I am testing the light_switch demo of the nrf5_SDK_for_Mesh_v0.10.1-Alpha_src.

I don't have 32kHz osc on my server board, so I have to change the clk config. I config the clock like this:

config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_RC;

config_params.lf_clk_cfg.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM;

But the program  fail at the sd_softdevice_enable() function. I think it is because of the clk config. So how should I config the clk if I don't have the LF CLK on my board, please?
Parents Reply
  • I got an nRF51-DK (256K Flash and 32K RAM) board and removed the 32KHz LF crystal to simulate your board. I made the changes for the LF clock source in the mesh_core_setup(), I was able to get the light switch client running and it responds correctly to button presses.

    #elif SD_BLE_API_VERSION >= 2
    nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_RC, 32, 2, NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM};
    
Children
No Data
Related