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

Code not entering DFU mode

Hi,

I am using SDK14.2 with softdevice v5.1.0. I have recently ported my application from SDK12.2.

When I run my application with the softdevice it works fine. But when I use the bootloader along with this I face issues. I am using bootloader secure ble example to generate bootloader hex file.

The issues I face are:

- If I use the bootloader code as it is without any change it directly starts in DFU mode and starts advertising 'DfuTarg'. This is not what I want.

- Since I am not using Button 4 to enter the DFU mode in my custom board I comment out the nrf_dfu_button_check() in nrf_dfu.c. But when I do this the code does not enter the DFU mode.

(I go to nrF connect, select Secure DFU Service, then enable notifications and select 'Send' to enter the DFU mode. The device diconnects but does not enter the DFU mode.)

Is there any changes that need to be made so that I can use the bootloader code with my custom application code.

Thank you in advance.

Related