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

project with NUS prevents DFU from advertising

Nrf52/Kiel/SDK11

My application was at the point where I needed to add DFU. Following the examples and SDK doc, I added the files and code needed. It would NOT advertise. So I looked at the examples (eg Heartrate with dfu) and noticed the only difference was the NUS service. I removed it and the DFU finally advertised.

So I add the code back for the NUS and again, the DFU went away. Next, I switched the order of initialization in my serivces_init file, and it appears that the service that is initialized first is the one that gets to advertise.

Finally, I used the heart rate w/ DFU example and added the NUS service, and again, it would not advertise as long as it initialized after the DFU.

Any ideas?

Rich

Parents
  • To be clear, I simply took the example from examples\ble_peripheral\ble_app_hrs\pca10036\s132_with_dfu\arm5_no_packs, added the NUS service, and the service does not get discovered. I can remove the DFU init from services_init and the NUS is now discovered. SO, when probably should be more correct and say the service is not discovered (which I assumed related to advertising).

Reply
  • To be clear, I simply took the example from examples\ble_peripheral\ble_app_hrs\pca10036\s132_with_dfu\arm5_no_packs, added the NUS service, and the service does not get discovered. I can remove the DFU init from services_init and the NUS is now discovered. SO, when probably should be more correct and say the service is not discovered (which I assumed related to advertising).

Children
No Data
Related