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

Parents Reply Children
  • okay i changed NRF_DFU_POST_SD_BL_TIMEOUT_MS  and NRF_DFU_INACTIVITY_TIMEOUT_MS to 100 ms as it is the least possible value suggested. 

    Now when i do DFU, it disconnects automatically with DFU operation failed and starts to advertise with the existing application. 

    Does that mean this timer also accounts to how much time it takes to start the DFU process? Because in that case, setting 100 ms is not possible at all.

Related