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

Module starts advertising as dfuTarg if BLE disconnects during DFU

Hello, 

I am using nRF52832 with SD v5.0.0 and SDK version 14.2 on a custom chip. 

I have implemented FOTA with buttonless DFU on my application and is working fine. 

However, i have a question:

Let's say i have an application with advertising name ADV1 and if in secure DFU mode, advertising name is DFUBOOT. Now it is advertising as ADV1 and i connect to it. I want to update the application now with ADV2 as advertising name.

Once the DFU process starts, in between, i disconnect the BLE and then reconnect again.

What i see is that module starts to advertise as DFUBOOT instead. Shouldn't it advertise as ADV1 only since DFU was not completed? Or the behavior i observe here is correct? 

My understanding is that once DFU starts, bootloader will store the incoming image to a different memory and after post validation only it will overwrite the previous application image with a new one. (DUAL BANK UPDATE)

Please let me know if my understanding is wrong here and if there is anything i should be doing so that even if DFU fails, it should start to advertise with the exisiting application.

Thanks a lot in advance! SK

Related