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

hang in sd_softdevice_enable() when use nRF52840 Internal oscillator

Hi,

I am try to configure internal RC (LFCLK) but device hang in "sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);" API.

Changed in  "sdk_config.h" to enable internal RC.

Used "...\...\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_hrs\pca10056\s140\arm5_no_packs" HRS sample code.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// </h>
//==========================================================
// <h> Clock - SoftDevice clock configuration
//==========================================================
// <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
// <0=> NRF_CLOCK_LF_SRC_RC
// <1=> NRF_CLOCK_LF_SRC_XTAL
// <2=> NRF_CLOCK_LF_SRC_SYNTH
#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif
// <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Ref link: https://devzone.nordicsemi.com/f/nordic-q-a/50338/nrf52840-internal-oscillator-soft-device-enable-hanging?ReplySortBy=CreatedDate&ReplySortOrder=Descending

Thanks,

Nirav Patel