now i want to use the lastest nrf5_sdk_12. But I find that the example did not work. The fellowing is my configuration.
now i want to use the lastest nrf5_sdk_12. But I find that the example did not work. The fellowing is my configuration.
I find that my board does not have a 32.768K crystal. How to change to use internal RC?
You can set the clock source to RC in ble_stack_init() with the following code:
nrf_clock_lf_cfg_t rc_cfg = {
.source = NRF_CLOCK_LF_SRC_RC,
.rc_ctiv = 16, // Check temperature every 4 seconds
.rc_temp_ctiv = 2, // Calibrate at least every 8 seconds even if the temperature hasn't changed
};
SOFTDEVICE_HANDLER_INIT(&rc_cfg , NULL);
It runs correctly. Thank you very much.