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

Questions related to nrf52832 DFU

Hi,

I really need your help!

When I add DFU function to my project, I need to display DFU progress on my LCD, but I don't know where to add my display code, and I don't know how to set DFU timeout, can you help me solve this problem?

Thank you very much!

Parents
  • I need to display DFU progress on my LCD, but I don't know where to add my display code,

     The transfer of the firmware image during the DFU process consists of several 'Data Objects' being 'created', 'selected' and then finally 'executed', see DFU protocol

    The size of the firmware image is stored in m_firmware_size_req in nrf_dfu_req_handling and by monitoring the number of create request that are received(  on_data_obj_create_request is the relevant callback) you should be able to keep track of how far along in the DFU process you are. 

    So by 

    I don't know how to set DFU timeout, can you help me solve this problem?

    Do you mean the Inactivity Timer that resets the device to the application if there is no activity from the DFU Controller( BLE Central) after it has triggered the nRF device to reset to bootloader mode? If yes, then this is started automatically when the bootloader is initialized. 

    Best regards 

    Bjørn

Reply
  • I need to display DFU progress on my LCD, but I don't know where to add my display code,

     The transfer of the firmware image during the DFU process consists of several 'Data Objects' being 'created', 'selected' and then finally 'executed', see DFU protocol

    The size of the firmware image is stored in m_firmware_size_req in nrf_dfu_req_handling and by monitoring the number of create request that are received(  on_data_obj_create_request is the relevant callback) you should be able to keep track of how far along in the DFU process you are. 

    So by 

    I don't know how to set DFU timeout, can you help me solve this problem?

    Do you mean the Inactivity Timer that resets the device to the application if there is no activity from the DFU Controller( BLE Central) after it has triggered the nRF device to reset to bootloader mode? If yes, then this is started automatically when the bootloader is initialized. 

    Best regards 

    Bjørn

Children
Related