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

How to integrate the ble peripheral uart example to the beaconing mesh example?

I try to integrate the ble peripheral uart example and the beaconing mesh example. It build completed. But when i build and debug on nrf52 board. I have some errors about funtion "SVCALL(SD_BLE_CFG_SET, uint32_t, sd_ble_cfg_set(uint32_t cfg_id, ble_cfg_t const * p_cfg, uint32_t app_ram_base));" return "Unknow error".

Anyone has the solution to this problem? please help me. Thanks all!

error 

Parents Reply
  • Hi,

    You need to comment out the SD_EVT_IRQHandler in nrf_mesh_sdk.c

    In the ble_app_uart + Mesh light example in the post I linked to, SD_EVT_IRQHandler is just wrapped with a #if 0 #endif

    Snippet:

    #if 0
    void SD_EVT_IRQHandler(void)
    {
        /* Fetch SOC events. */
        uint32_t evt_id;
        while (sd_evt_get(&evt_id) == NRF_SUCCESS)
        {
            nrf_mesh_on_sd_evt(evt_id);
        }
    
        /* Fetch BLE events. */
        uint16_t evt_len = sizeof(m_ble_evt_buffer);
        while (sd_ble_evt_get(&m_ble_evt_buffer[0], &evt_len) == NRF_SUCCESS)
        {
            nrf_mesh_on_ble_evt((ble_evt_t*) &m_ble_evt_buffer[0]);
            evt_len = sizeof(m_ble_evt_buffer);
        }
    }
    #endif

Children
No Data
Related