Device goes into DFU after adding FOTA over Bluetooth

I added FOTA over Bluetooth to my NRF52840 application. Everything works, I can update the application over bluetooth and it runs properly, but after updating if I unplug the dongle and plug it back in the device starts up in DFU mode instead of just starting up my application normally. Any idea why this would occur? Thanks 

Parents Reply
  • I don't understand what you mean when you say "If not, I do not see any advantage of including this bootloader in addition to MCUBoot and would recommend to just use the latter."


    I take this to mean that I should only use MCUBoot and not the default bootloader, but how is that possible if this cannot be overwritten in the dongle?

    I've read every article I could find on the bootloader and FOTA but I'm still lost what I need to do next to try and debug the situation I'm facing.

    Thanks. 

Children
  • coolerkid said:
    take this to mean that I should only use MCUBoot and not the default bootloader, but how is that possible if this cannot be overwritten in the dongle?

    Correct, but as mentioned in my previous reply you can overwrite it with a debugger. Also this is only relevant if your project uses the nRF52840 Dongle as it is the only device (at least from us) that comes pre-programmed with this bootloader. Loose nRF52840 ICs are shipped empty and require initial programming through the debug interface.

    The nRF52840 Dongle is not intended for FW development or for use in a final product and the main if not only reason you might want to have *both* MCUBoot and the Open Bootloader programmed on the dongle is if you need to support Zephyr/NCS DFU, but don't have the option of overwriting the existing bootloader using an external debug probe. 

  • Our intent is to use a dongle from one of the companies where we can white label them for resale, instead of building our own because it has everything we need already.  I'm not sure if we will be having the manufacture flash these for us with our firmware or if we're going to do it ourselves, but if we do we'll only be able to flash it over USB so we likely wont have the option to write over the bootloader. 

    So how can we debug this issue if it's working on the DK with the open bootloader, but not on the actual dongles we are trying to use? Can these dongles for sure support FOTA over BT?

    Thanks

  • Thanks for the clarification. Perhaps it would be better to work with dongles from those companies then as they may ship with a different bootloader. The nRF52840 dongle is for example not FCC certified and may not be resold in markets requiring this.

    coolerkid said:
    So how can we debug this issue if it's working on the DK with the open bootloader

    Did your program the open bootloader + MBR and where you able to upload your application through the nRF USB?  

    coolerkid said:
    Can these dongles for sure support FOTA over BT?

    Yes.

Related