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

Nordic UART Service Configuration

Hello everyone, I added NUS library and I change the sdk_config.h file according to ble_app_uart example. When I built my project, I do not get any errors. But the device is not advertise.  When I remove the UART service, the device continues to broadcast. I have no idea about where did I make mistakes or forget something? Do you have any suggestion?

Parents
  • Hi Ugur,

    What SDK and Softdevice version do you use?

    Did you start out with the template project and then added the NUS? (enabled the uart module correctly)

    (A quick fix would be to directly use the "ble_app_uart" example and add your desired functionality into that)

  • Hi Martin, I use sdk14.2.0 s132 softdevice.

    Yes I started with ble_app_template example.

    Ok I will try to use ble_app_uart but how to configure library, sdk_config etc.? Many functions are already attached in ble_app_template(peer manager,bonding configuration etc.). But uart example is a quite plan. So, how to configure sdk_config, path and file

  • It depends on what IDE you are using. 
    If you are using SES you can see a tutorial here.

    For Keil you go to options for target --> C/C++ -->include paths. 

  • Unfortunately, I have already add related path to options for target there is no change. I deleted project and I started to modify ble_app_uart example. The sdk_config file is quite complicated and the slightest error or incompletion causes the program not to work correctly. I made a few small changes, but I do not remember all of them. I think older versions of sdk had a simpler structure. I guess it will take some time. Thanks for your interest.

Reply
  • Unfortunately, I have already add related path to options for target there is no change. I deleted project and I started to modify ble_app_uart example. The sdk_config file is quite complicated and the slightest error or incompletion causes the program not to work correctly. I made a few small changes, but I do not remember all of them. I think older versions of sdk had a simpler structure. I guess it will take some time. Thanks for your interest.

Children
No Data