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

How to add DFU service with the custom service

Hello All,

I am trying to add DFU service in the small example with the custom service.

But is not working, facing issues.

I am working on the nrf52810 board with SDK 14.2.

Please guide/provide procedure to how add DFU service with existing code along with Custom service.

Please check my main.c file below.

Waiting for your Valuable response.

Regards,

Rohit

  • But is not working, facing issues.

     I don't see any references to 'DFU' in the code you uploaded. You can use the Buttonless DFU template example as a reference for integrating it into your app. Also recommend taking a look at this guide if you haven't done it already: https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader

  • i have tried with Buttonless dfu example but if i add the custom service then code is not working.

    without custom service code is working.

    Any changes required for adding custom service with dfu ?

    Please provide your inputs.

    Regards,

    Rohit

  • I suggest that you enable debug logging over UART or RTT so you can see the debug messages if you haven't done it already. Also, add 'DEBUG' to the list of pre-processor definitions in order to get a verbose crashlog.

    Rohit said:
    Any changes required for adding custom service with dfu ?

    Maybe increase  NRF_SDH_BLE_VS_UUID_COUNT in you sdk_config header. It needs to correspond with the number of 128-bits base UUIDs you have in your app. The DFU service use 1.

  • I have made NRF_SDH_BLE_VS_UUID_COUNT = 2

    But still it not working ,

    Can you suggest any procedure to add dfu service in code with custom service..?

    Regards,

    Rohit

  • You may need to increase the RAM base address for your app when you increase the Softdevice UUID buffer. Have you enabled debug logging? It should tell if that's the case.

    Regards,

    Vidar

1 2