This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

dfu via ota

Hi all,

I'am doing DFU via OTA 

The device will be in bootloader mode ?

my current application has a thread running when i'am initiating DFU via OTA in nrf_connect app,

the DFU process will start and complete but thread will be running simultaneously how can i stop my current application

from running while DFU via OTA process is going on

Regards

Tushar

Parents
  • HI Tushar,

    Which SDK are you using? After looking at some of your former threads, I will assume you use the nRF Connect SDK for now. 

    the DFU process will start and complete but thread will be running simultaneously how can i stop my current application

    This is normal. MCUboot, which is the bootloader used in the nRF Connect SDK, does not have BLE transport, so the transport happens in the application, which then includes the management subsystem. So your application will run during the DFU process, up to the point of activation, where a reset happens.

    If you want to do something in your application (like stop doing what it does, cleanup or something else), you can register relevant callbacks with img_mgmt_register_callbacks() or img_mgmt_set_upload_cb().

    Einar

Reply
  • HI Tushar,

    Which SDK are you using? After looking at some of your former threads, I will assume you use the nRF Connect SDK for now. 

    the DFU process will start and complete but thread will be running simultaneously how can i stop my current application

    This is normal. MCUboot, which is the bootloader used in the nRF Connect SDK, does not have BLE transport, so the transport happens in the application, which then includes the management subsystem. So your application will run during the DFU process, up to the point of activation, where a reset happens.

    If you want to do something in your application (like stop doing what it does, cleanup or something else), you can register relevant callbacks with img_mgmt_register_callbacks() or img_mgmt_set_upload_cb().

    Einar

Children
Related