in button less dfu ,how can i switch from dfu trag mode to my previous ble application(firmware) if i dont want to upload new firmware

I am working on my nrf52810  . I just found an issue that, when  my device  enter DFU mode its show dfu trag , I can not return to the application(If I do not want to upload new firmware. so how can i switch   from dfu trag mode to  my previous  ble application(firmware)  . 

  • Hello,

    There is a timeout in the DFU mode, so eventually, the application will return to the default application.

    That is almost always the case. The exception would be if you started transferring a DFU image, or the init packet of the DFU image. In that case, the application may have been deleted, depending on the size of the new image. 

    But if you only put the device in DFU mode, there should be a timeout that will take the nRF back into the application.

    I don't know what SDK version you are using, but referencing the latest SDK version, SDK 17.1.0:

    Please open the bootloader project that you are using, and in your bootloader's sdk_config.h file, you should see a section:

    // <o> NRF_BL_DFU_INACTIVITY_TIMEOUT_MS - Timeout in ms before automatically starting a valid application due to inactivity.  <0-60000000> 
    
    
    // <i> If 0, no inactivity timer will be used. Values 1-99 are invalid.
    
    #ifndef NRF_BL_DFU_INACTIVITY_TIMEOUT_MS
    #define NRF_BL_DFU_INACTIVITY_TIMEOUT_MS 120000
    #endif

    this is pretty much what it sounds like.

    The NRF_BL_DFU_INACTIVITY_TIMEOUT_MS is the timeout (given in ms, so in this case, 120 seconds) that it takes from the last received (if any) DFU packet before it will restart the old application.

    I hope this answered your question.

    Best regards,

    Edvin

Related