Hi, I am using nrf51822 pca10004 with SDK110 v8 , I got a problem that the code hangs in sd_softdevice_enable and stuck in SVC_Handler.
Thanks, Nagaraj
Hi, I am using nrf51822 pca10004 with SDK110 v8 , I got a problem that the code hangs in sd_softdevice_enable and stuck in SVC_Handler.
Thanks, Nagaraj
The QFAAH00 variant only have 16 kB RAM. Did you change the RAM linker settings to reflect this ?
You could get stuck in ble_stack_init if you have a bad low frequency crystal, since the macro is trying to start the LFCLK and then waits until the clock is started (possibly forever if the clock source is malfunctioning.)
Can you try to use internal RC, with SDK 11, in ble_stack_init():
Snippet:
nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
clock_lf_cfg.rc_ctiv = 16;
clock_lf_cfg.rc_temp_ctiv = 2;
// Initialize SoftDevice.
SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);
The QFAAH00 variant only have 16 kB RAM. Did you change the RAM linker settings to reflect this ?
You could get stuck in ble_stack_init if you have a bad low frequency crystal, since the macro is trying to start the LFCLK and then waits until the clock is started (possibly forever if the clock source is malfunctioning.)
Can you try to use internal RC, with SDK 11, in ble_stack_init():
Snippet:
nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
clock_lf_cfg.rc_ctiv = 16;
clock_lf_cfg.rc_temp_ctiv = 2;
// Initialize SoftDevice.
SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);