<?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>USB DFU with nrf connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68695/usb-dfu-with-nrf-connect-sdk</link><description>Hello sir, 
 I was referred this link ( https://github.com/zephyrproject-rtos/zephyr/issues/29921 ) to do USB DFU on nRF52840-DK, but I am facing an issue in this code is that the code doesn&amp;#39;t run after second time power reset. So, I request you to provide</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Nov 2020 23:20:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68695/usb-dfu-with-nrf-connect-sdk" /><item><title>RE: USB DFU with nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/281680?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 23:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b0d2a2-2ebc-4151-827c-23ba289ade5e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Include &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/include/dfu/mcuboot.h"&gt;dfu/mcuboot.h&lt;/a&gt; to your main application (the one you are uploading), and call&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.0-ncs2-rc1/include/dfu/mcuboot.h#L137-L149"&gt;boot_write_img_confirmed()&lt;/a&gt;&amp;nbsp;after all the initialization is complete, this will avoid rollback. Check out how it&amp;#39;s done in the serial lte modem application:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/applications/serial_lte_modem/src/main.c#L20"&gt;Including dfu/mcuboot.h&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/applications/serial_lte_modem/src/main.c#L189-L192"&gt;Calling boot_write_img_confirmed()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is this approach acceptable, or do you have to confirm it externally via USB?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>