Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

DFU Update file size

Hello,

I am using a modifed Secure bootloader example in my NRF52840. I would like to show the user an update progress bar on the device screen while loading BLE DFU update (app and maybe softdevice).

But I don't know how to get the totalal update size? I am using a "dfu_observer" where I try:

static void dfu_observer(nrf_dfu_evt_type_t evt_type) {
    uint32_t size;
    uint32_t offset;
  
    switch (evt_type) {
    case NRF_DFU_EVT_OBJECT_RECEIVED:
        size = s_dfu_settings.progress.data_object_size;
        offset = s_dfu_settings.progress.firmware_image_offset;
    }
}

But data_object size is always 0?

How can I keep track of the progress?

Thanks for hints and answers!

Andreas

Parents Reply Children
No Data
Related