<?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>Module starts advertising as dfuTarg if BLE disconnects during DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50230/module-starts-advertising-as-dfutarg-if-ble-disconnects-during-dfu</link><description>Hello, 
 I am using nRF52832 with SD v5.0.0 and SDK version 14.2 on a custom chip. 
 I have implemented FOTA with buttonless DFU on my application and is working fine. 
 However, i have a question: 
 Let&amp;#39;s say i have an application with advertising name</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2019 06:10:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50230/module-starts-advertising-as-dfutarg-if-ble-disconnects-during-dfu" /><item><title>RE: Module starts advertising as dfuTarg if BLE disconnects during DFU</title><link>https://devzone.nordicsemi.com/thread/200642?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 06:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c1dab50-5178-4daf-9a3c-84bcef3c6a62</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;okay i changed&amp;nbsp;NRF_DFU_POST_SD_BL_TIMEOUT_MS&amp;nbsp; and&amp;nbsp;NRF_DFU_INACTIVITY_TIMEOUT_MS to 100 ms as it is the least possible value suggested.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now when i do DFU, it disconnects automatically with DFU operation failed and starts to advertise with the existing application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does that mean this timer also accounts to how much time it takes to start the DFU process? Because in that case, setting 100 ms is not possible at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Module starts advertising as dfuTarg if BLE disconnects during DFU</title><link>https://devzone.nordicsemi.com/thread/200639?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 06:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6428e0f6-98d1-400b-a54e-b82b5b40fdc7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The bootloader will always reset when the inactivity timer times out and on the following startup, it will either enter DFU mode again or boot the application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Module starts advertising as dfuTarg if BLE disconnects during DFU</title><link>https://devzone.nordicsemi.com/thread/200630?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 01:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544c017e-2fb7-4e48-b9f4-50db6ad704be</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Okay, so minimum that can be is 100 ms. Does it also mean that if there is no application, it will just advertise for 100 ms and turn off?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Module starts advertising as dfuTarg if BLE disconnects during DFU</title><link>https://devzone.nordicsemi.com/thread/200628?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 01:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df48a1ea-ad5c-4f25-8eff-51fd777086d1</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot! Tested and it works exactly like you said. I wonder if we can make inactivity timer to zero? So it starts advertising the sec there is an incomplete DFU process.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Module starts advertising as dfuTarg if BLE disconnects during DFU</title><link>https://devzone.nordicsemi.com/thread/200560?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 13:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8665ab-dc9e-4424-8340-ac683178a501</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Once the DFU process starts, in between, i disconnect the BLE and then reconnect again.[/quote][quote user=""]What i see is that module starts to advertise as DFUBOOT instead. Shouldn&amp;#39;t it advertise as ADV1 only since DFU was not completed? Or the behavior i observe here is correct?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;It sounds like the correct behavior - the device is still in DFU mode waiting for the DFU controller to re-connect and finish the application update to&amp;nbsp;&lt;strong&gt;ADV2.&amp;nbsp; &lt;/strong&gt;However, the bootloader has an inactivity timer with a timeout of 2 minutes (default) so&amp;nbsp;I would expect it to start ADV1 if you don&amp;#39;t reconnect and&amp;nbsp;just let it time out.&amp;nbsp;&lt;/p&gt;
[quote user=""]My understanding is that once DFU starts, bootloader will store the incoming image to a different memory and after post validation only it will overwrite the previous application image with a new one. (DUAL BANK UPDATE)[/quote]
&lt;p&gt;&amp;nbsp;Yes, that is correct.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>