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

Program stuck in ble_stack_init until reset button on dev board is pressed

Hi, I am developing with the pac10040 dev board, trying to get the BLE running. 

My program seems to pause in the ble_stack_init function and I have to press the "IF BOOT/RESET" button on the board for it to continue running. How do I avoid this issue?

Thank you!

static void ble_stack_init(void)
{
    ret_code_t err_code;
    
    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.
    uint32_t ram_start = 0;
    err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start);
    APP_ERROR_CHECK(err_code);

    // Enable BLE stack.
    err_code = nrf_sdh_ble_enable(&ram_start);
    APP_ERROR_CHECK(err_code);

    // Register a handler for BLE events.
    NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);
}

Parents Reply Children
No Data
Related