nrf5340 how to forcefully enter into DFU mode if a buggy APP is loaded via DFU ?

How can we forcefully enter into DFU mode in NRF5340 if for example the newly loaded application due to a bug is unable to advertise BLE?
In another words, if I press reset button, I want the device to be in DFU mode for at least 10 seconds so that I can recover the  device in case if the application crashes.

At present the DFU bootloader is a standalone bootloader with BLE capability or is jt just a switcher which jumps to the application downloaded new image partition?

Parents
  • I would like to simplify it, 

    If I press the reset button, I want the MCUboot to be in DFU mode for say around 15 seconds and if there is no valid connection from BLE APP, then enter into existing application.

    This way, even if a wrong firmware goes into the device, still I will be able to recover the device by pressing reset button and perform a forcefull DFU.

    Any clue how to do this ? I may have to modify the mcuboot for this purpose, am I right ? Or does MCUboot have this configuration which I can just enable with a timeout value on physical reset button press?

Reply
  • I would like to simplify it, 

    If I press the reset button, I want the MCUboot to be in DFU mode for say around 15 seconds and if there is no valid connection from BLE APP, then enter into existing application.

    This way, even if a wrong firmware goes into the device, still I will be able to recover the device by pressing reset button and perform a forcefull DFU.

    Any clue how to do this ? I may have to modify the mcuboot for this purpose, am I right ? Or does MCUboot have this configuration which I can just enable with a timeout value on physical reset button press?

Children
No Data
Related