Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Initialize and use multiple BLE services

I am trying to initialize the BLE NUS UART service and the BLE LBS service so both can be used at the same time in a single nRF52 application. I can initialize a single service without any problems. But if I call the init function for the second service the application hardfaults. Is it possible to initialize two services to run simultaneously? Please advise how I might accomplish this. 

I am using nRF52 SDK version 14.2 combined with the Mesh SDK version 1.0.1 on an nRF52 development kit. I used the ble_peripheral NUS UART example as the basis. Then I added the LBS service source file to that project and added the lbs init function to the services_init function in the NUS example.

Related