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

Which is the recommended way to do DFU? nRFconnect/nrfprog with hex file or nrfutil with zip file?

Searching through the forum I found this guide.

"Getting started with Nordic's Secure DFU bootloader, a step by step guide"

https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader#h23sjziacp7vrw0scs2t3tua1ax0426

It seems to teach how to generate a zip file and flash it using nrfutil.

But the guide info center seems to mention flash hex files using nRFconnect/nrfprog.

Which way is the recommended way?

Thanks.

  • Hi,

    Flashing hex files directly with e.g. nrfjprog or nRF Connect Programmer app is for development and during production. For that you need a J-Link programmer connected to the device.

    The DFU bootloader is for updating firmware in the field, after it has been delivered to the customer. If using BLE for the update, this happens over the air (OTA).

    You may of course also use the DFU bootloader for updating firmware during development and production, but using a programmer is the quickest and usually the best method for development and production. Connecting with a J-Link programmer also gives debug functionality.

    Regards,
    Terje

Related