Using ble_app_uart and ble_hid together ?

Hi,

I have developed a device with a smartphone controller. I can transmit and receive commands to the device using the ble_app_uart instance.
I want to send data from device to smartphone to trigger smartphone camera. I sent the volume up command using the ble_hid example and successfully triggered the smartphone camera.

As for the problem,

I added the ble_hid instance on ble_app_uart but the device crashes when it wakes up. Service init and advertisement start code has lots of common code.
I don't know how to merge these 2 instance. Is it possible ? Also i did'nd find any merged instance.

Related