Hi,
IC : nrf52832 SDK : Mesh_v1.0.0
I am testing the light_switch demo of the Mesh_v1.0.0.
I don't have 32kHz osc on my server board, so I have to change the clk config. I config the clock in server project like this:
config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_RC;
config_params.lf_clk_cfg.accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM;
By the j-link RTT viwer i can find the problem has failed at the sd_softdevice_enable() function. And the J-link RTT viewer showing this:
0> <t: 0>, main.c, 119, ----- BLE Mesh Light Switch Server Demo -----
0> <t: 0>, nrf_mesh_sdk.c, 72, APP_ERROR: G:\ES_project\nrf5_SDK_for_Mesh_v1.0.0_src\examples\light_switch\server\src\main.c:141 code 7
I think it is because of the clk config. But I config the clock in client project like this:
nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_RC, 16, 2, NRF_CLOCK_LF_ACCURACY_20_PPM};
By the J-link RTT viwer I can find the program is running as expected, like this:
0> <t: 0>, main.c, 431, ----- BLE Mesh Light Switch Client Demo -----
0> <t: 0>, nrf_mesh_sdk.c, 187, Initializing softdevice
0> <t: 0>, nrf_mesh_sdk.c, 122, Initializing SoftDevice...
0> <t: 0>, nrf_mesh_sdk.c, 131, Ram base: 0x200031B0
0> <t: 15>, nrf_mesh_sdk.c, 197, Initializing mesh stack
0> <t: 558>, nrf_mesh_sdk.c, 205, Enabling mesh stack
0> <t: 564>, main.c, 183, Setting up access layer and models
< 1
0> <t: 487100>, main.c, 314, Button 1 pressed
0> <t: 487102>, main.c, 317, No devices provisioned
So how should I config the clk in the server project if I don't have the LF CLK on my board, please?