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

Disable send the rest of page in DFU

Hi Sir,

As runs w/ serial DFU and check the source code of nrfutil, it support to send the rest of page when transmitted the data.

1. If we don't want to implement this feature in host MCU, is it possible to disable this feature in DFU?

2. If this feature cannot disable, could you help to point out which API process this feature in DFU? we want to more understand this portion.

IC: nRF52840

SDK: 15.2

nrfutil: 5.0.0

Thank you.

BRs, Han

  • Hi Hanyu, 

    How do you want your device to work  ? 

    The code you pointed is inside try_to_recover(), this is the feature to support resuming DFU after it's been interrupted and the image has been transferred partly. This is the response of the Select command. Read about it here.

    If you don't want to support this continual you can change in the DFU target code to always return offset= 0 then the new image will be sent. 

Related