This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DFU Service and Custom Service

Hi, Am starting custom service to support custom profile and it works without any issues. But when I add DFU service also to start after custom service DFU service fails to add the service. If I start custom service after DFU service ,custom service is not starting. Am using NRF52 dev kit with Softdevice 2.0 flashed first and application . Please let me what may be reason for failure. I can see sd_ble_uuid_vs_add is returning error in either case

Parents
  • Hi, this example ble_stack_init() shows how to set vs_uuid_count:

    ble_enable_params_t ble_enable_params;
    
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                    PERIPHERAL_LINK_COUNT,
                                                    &ble_enable_params);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    // This is your line, if you have 3 vendor spesific uuids:
    ble_enable_params.common_enable_params.vs_uuid_count = 3
    
    //Check the ram settings against the used number of links
    CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);
    // Enable BLE stack.
    err_code = softdevice_enable(&ble_enable_params);
    ...
    
Reply
  • Hi, this example ble_stack_init() shows how to set vs_uuid_count:

    ble_enable_params_t ble_enable_params;
    
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                    PERIPHERAL_LINK_COUNT,
                                                    &ble_enable_params);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    // This is your line, if you have 3 vendor spesific uuids:
    ble_enable_params.common_enable_params.vs_uuid_count = 3
    
    //Check the ram settings against the used number of links
    CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);
    // Enable BLE stack.
    err_code = softdevice_enable(&ble_enable_params);
    ...
    
Children
Related