Hello,
I want to use the code from the BLE template in my own application and so I copied all necessary files into the project, but the code stucks at
err_code = nrf_sdh_enable_request();
I have debugged the project and found out that the code never returns from
SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));
in "nrf_sdm.h".
I use the following code:
static void Init_Log(void)
{
APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
NRF_LOG_DEFAULT_BACKENDS_INIT();
}
static void Init_Timer(void)
{
APP_ERROR_CHECK(app_timer_init());
}
static void Init_PowerManagement(void)
{
NRF_LOG_INFO("Initialize Power Management...");
APP_ERROR_CHECK(nrf_pwr_mgmt_init());
}
static void Init_BLE(void)
{
ret_code_t err_code;
uint32_t ram_start = 0;
NRF_LOG_INFO("Initialize BLE...");
err_code = nrf_sdh_enable_request();
APP_ERROR_CHECK(err_code);
// Configure the BLE stack using the default settings.
// Fetch the start address of the application RAM.
APP_ERROR_CHECK(nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start));
// Enable BLE stack.
APP_ERROR_CHECK(nrf_sdh_ble_enable(&ram_start));
// Register a handler for BLE events.
NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, BLE_Event_Handler, NULL);
}
How can I fix this issue?


