<?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>Enterance/Exit times from DFU mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63202/enterance-exit-times-from-dfu-mode</link><description>Hi! Some prerequisite info: 
 
 We are using nrf52840 boards as our peripherals 
 We are using v16.0.0 SDK 
 We are using the s113 SoftDevice, more specifically s113_nrf52_7.0.1_softdevic e. 
 Since our central code is written in .NET Core, we use Windows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Jul 2020 14:12:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63202/enterance-exit-times-from-dfu-mode" /><item><title>RE: Enterance/Exit times from DFU mode</title><link>https://devzone.nordicsemi.com/thread/257886?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 14:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4786cf1-a46b-4e7e-803d-34afc5b60a1c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Roi,&lt;/p&gt;
&lt;p&gt;This really depends on the applications.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The time between a successful response for the indication of the DFU characteristic (opcode 1), to it&amp;#39;s readvertisement as DFUTarg on the incremented address[/quote]
&lt;p&gt;&amp;nbsp;If your application does a graceful shutdown, this may take as long as the application waits before it reboots.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A Graceful shutdown may include:&lt;/p&gt;
&lt;p&gt;Finishing flash write operations if ongoing, disconnecting all connected devices - which would depend on the connection interval. Alternatively if your application has any other tasks it wants to perform before the shutdown. Please check how the buttonless dfu service handles the events.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The time between DFU end or timeout, and it&amp;#39;s readvertising with the app code (the original address)[/quote]
&lt;p&gt;&amp;nbsp;I don&amp;#39;t have an exact number, but this would be very dependent on the size of the application. First, when the total application is finished, the bootloader will run through the entire image, and verify the CRC, and that it matches with the CRC from the init packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then, depending on whether it is a single or dual bank, it needs to move the application to the correct place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think the easiest way to get a good number is to measure this for your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t quite understand the need to know this very accurate. Is there a problem to start scanning for the device before it has started advertising?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>