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

simple bluetooth example code for nRF52832

Hello,

can i get the simple bluetooth example code for nrf52.

thanks and regards

Varun.

Parents Reply Children
  • hi awneil,

    we are using sdk  nRF5_SDK_14.2.0 in our project for nrf52, now we need to add bluetooth feature. so i started to take reference from example in ble_peripheral "ble_app_uart" from  sdk nRF5_SDK_14.2.0_17b948a.

    i started changes in existing project from sdk_config.h file

    and added ble API files as below,

    and ble softdevie files as below,

    and header files path i added, used s132 ble softdevice  path

    after this changes if i compile, i am facing so many errors.

    am i following the correct steps? or not?

    and in code NRF_SD_BLE_API_VERSION macro value is less then 2, but  i am using ble softdevice s132 version 5.0, 

    why like this? 

    am i following the correct steps to add ble?

    thanks and regards

    Varun.

  • we are using sdk  nRF5_SDK_14.2.0

    Why such an old version?

    current is v17.0.2 !

    am i following the correct steps to add ble?

    I would strongly recommend that you start with an example project which already has BLE, and add your functionality to that.

    Start with the unmodified example - to ensure that you can build & run it.

    What IDE are you using?

  • actually it is decawave module which as nrf52 controller and dwm100 transreceiver.

    code for this module is developed from sdk14.2, so we are using the same.

    and IDE is segger embedded studio.

  • always helpful to mention these things at the start!

    So don't Decawave provide some specific examples for their platform?

    But, anyhow, I would still recommend that you start with a project which already has bluetooth.

    Bluetooth is the most complicated thing - so it's best to start with something which already has that part right!

    EDIT

    For specific Decawave questions: https://decaforum.decawave.com/

  • no, for bluetooth there is no example code from decawave, they asked to refer nrf examples.

    i will try to integrate ble example with current functionality as you told.