<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mcuboot + dfu-util on nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105989/mcuboot-dfu-util-on-nrf52840</link><description>Hello, 
 I have an application that is using mcuboot for bootloader and its a zephyr based application. 
 I am at a stage, where I able to enter dfu mode by pressing the button on my board and powering on the board. I am able to update signed application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2023 04:53:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105989/mcuboot-dfu-util-on-nrf52840" /><item><title>RE: mcuboot + dfu-util on nrf52840</title><link>https://devzone.nordicsemi.com/thread/457728?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 04:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef93967e-9e5e-4e4c-bbea-db8e587e8ca9</guid><dc:creator>ZL_Chiu</dc:creator><description>&lt;p&gt;Hi Viresh:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;maybe you can try &amp;quot;sudo dfu-util -l&amp;quot; in ubuntu system&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot + dfu-util on nrf52840</title><link>https://devzone.nordicsemi.com/thread/457198?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 14:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2389c4b7-ec8a-43c4-a794-d473ed74a4cb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Viresh,&lt;/p&gt;
[quote user=""]what changes do i need to make to my prj.cnf and mcuboot.cnf file so that it works with dfu-util?[/quote]
&lt;p&gt;I do not believe dfu-util supports acting as an SMP client, so that will not work as far as I can understand. That is for a completely different DFU protocol.&lt;/p&gt;
[quote user=""]I tried running the example application in: zephyr/samples/subsys/usb/dfu/ , but when i set CONFIG_BOOTLOADER_MCUBOOT=y , I don&amp;#39;t see a merged.hex file getting generated so I am assuming the example is not working the way it is supposed to? I am building the application using nfrconnect extension on VS code. Is there anything I am not doing correctly?[/quote]
&lt;p&gt;I don&amp;#39;t know what you are doing so I cannot say.&lt;/p&gt;
[quote user=""]Is mcumgr not recommended for production applications?[/quote]
&lt;p&gt;We generally only provide desktop tools for development, and not production use. In addition to using mcumgr you can use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-util"&gt;nrfutil&lt;/a&gt;, which supports performing MCUboot serial recovery if you prefer that. If you need a production grade desktop tool for performing DFU (meaning something your end customers will use), that would be up to you to either develop it or validate that mcumgr or whichever solution you end up with works well enough for your specific use case.&lt;/p&gt;
[quote user=""]is dfu-util not compatible/recommended for nrf52840 chips (its mounted on my custom board)? I ask this because I was going over your one of the tickets (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103932/i-m-trying-to-perform-usb-dfu-with-nrf-connect-sdk-ver2-4-2-but-an-error-occurs-with-duf-util"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/103932/i-m-trying-to-perform-usb-dfu-with-nrf-connect-sdk-ver2-4-2-but-an-error-occurs-with-duf-util&lt;/a&gt;&amp;nbsp;) and it sounded like your support tech was recommending using mcumgr over dfu-util?&amp;nbsp;[/quote]
&lt;p&gt;It is not compatible and not supported.&lt;/p&gt;
[quote user=""]can you please point me to any example that talks about configuring app for DFU? I have gone through the existing examples, and most/all of them use mcumgr for dfu[/quote]
&lt;p&gt;You may find the examples my colleague have put &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;here&lt;/a&gt; (with good descriptions) useful for getting started with DFU.&lt;/p&gt;
[quote user=""]Is there a recommended procedure/application that you recommend for a reliable DFU for nrf52840 chips, running zephyr application and using mcuboot. once its in production and out to the world?&amp;nbsp;[/quote]
&lt;p&gt;We don&amp;#39;t provide any other tools than mentioned earlier in this case for serial DFU. If you need something else, you will have to develop that yourself. Generally, we only provide development tools for Desktop. (We do whoever provide DFU libraries for OTA for iOS and Android).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>