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

nrf52 and BDS

Hello I saw a Nordic presentation where they state that the plugin for nrf51 can export services from Bluetooth Developer Studio for nrf52 but when I include the generated files I am missing this include #include "app_util_bds.h" in the whole SDK 0.9.x can't find it, also by documentation if its the same I have to use this example to operate with the above files infocenter.nordicsemi.com/index.jsp but when I tried it I was missing tx_value and rx_value.

What am I doing wrong ?

  • The current BDS plugin should work fine with the nRF52 SDK even though it was designed for the nRF51, since the BLE API's are the same. The main issue today is that we don't have a BDS template project in the nRF52 SDK.

    This should be coming pretty soon, but in the mean time one of our engineers has modified the standard BLE template project in the nRF52 SDK to interface with the BDS generated files: ble_app_template_bds.zip

    Using the attached example you should be able to follow the same procedure as you would for the nRF51 SDK.

    The example is provided "as is", so use it at your own risk ;)

  • Hi I downloaded the zip and compiled it to the board but your service.c and h files don't have any services and characteristics initialization that is done on the Bluetooth chip more over in the main code you don't use anywhere the #include "service_if.h" or the only invocation I found was to Bluetooth_init which always returns nrf_sucess.

    Can you provide me a example using BDS with atleast one service and two characteristics for RX/TX data and the xml file with which you generated them inside the BDS because I don't see this example as useful in the current state ? Moreover when I compile my own file from BDS I get the following dependencies: #include <stdint.h> #include <stdbool.h> #include "ble.h" #include "ble_srv_common.h" #include "app_util_bds.h" which are not present in your template and file "app_util_bds.h" cant be found

  • Hi

    Apparently some changes had to be made to the SDK to support the BDS projects:
    a) ble_srv_common.c/.h had to be extended with some extra functions and structs
    b) app_util_bds.h had to be added, as you discovered.

    I modified the SDK to include these changes, and you will find it attached here: nRF52 SDK 9.2 BDS template.zip

    The BDS template project is called ble_app_template_bds.

    Feel free to try it out, and if you discover any problems please let me know.

    Best regards
    Torbjørn

Related