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

How to integrate BLE Template with Peripheral Template projects? some files seem to be totally different with the same name in both templates.

Hi Everyone

I have written a code using the peripheral template given in Nordic\nRF5_SDK_15.0.0_a53641a\examples\peripheral   path which works very well so far.

My aim is to combine and run this program with the BLE_APP_UART example given in the SDK. But when i try to compile the code it throws errors which is due to different files in the BLE example but they have the same name.

For example : nrfx_nvic.h file is different in BLE template code than it is in Peripheral example.

How to combine both the codes to achieve BLE connectivity and transmit the data?

Thanks 

Rajat!

  • Hi,

    Some functions are controlled by the softdevice when this is enabled, but also need to be handled when there is no softdevice available (interrupts, errors, etc).

    • When softdevice is not available, use the files in components\drivers_nrf\nrf_soc_nosd
    • When softdevice is available, use the files in components\softdevice\s1xx\headers

    Just remove the first path from your include folders when adding the BLE/softdevice functionality, and add the second path.

    Best regards,
    Jørgen

Related