Getting nrf52 ble-DFU percentage (DFU customization)

Hello,

          I am customizing the BLE DFU bootloader for nrf52820. Integrated an LCD to it.

Now I need to display the percentage of firmware download on the LCD. It will take more time for me to dig into the nRF_DFU to find how to get the real-time percentage of firmware download.

So I request if someone from Nordic to give some clue. :)

Parents
  • Hello,

    The progress is usually displayed on the host side and we therefore do not have any ready made solution to track progress on the device itself. But if you look at the on_data_obj_execute_request_sched() function in nrf_dfu_req_handler.c you can see both progress (firmware_image_offset) and total FW image size (m_firmware_size_req) so a quick solution might be to just update the display from that function.

Reply
  • Hello,

    The progress is usually displayed on the host side and we therefore do not have any ready made solution to track progress on the device itself. But if you look at the on_data_obj_execute_request_sched() function in nrf_dfu_req_handler.c you can see both progress (firmware_image_offset) and total FW image size (m_firmware_size_req) so a quick solution might be to just update the display from that function.

Children
Related