<?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>What happens after the final execute op code of the DFU?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73708/what-happens-after-the-final-execute-op-code-of-the-dfu</link><description>I&amp;#39;ve been digging through the DFU in order to reduce it&amp;#39;s power and I&amp;#39;ve come across 3 high power states. 
 1) The first is during initialization of the DFU. It happens on the first &amp;quot;execute&amp;quot; op code 0x04, where the public key and private key are verified</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Apr 2021 07:13:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73708/what-happens-after-the-final-execute-op-code-of-the-dfu" /><item><title>RE: What happens after the final execute op code of the DFU?</title><link>https://devzone.nordicsemi.com/thread/304707?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 07:13:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b819df75-3ccf-4275-bcb3-45242a2c1037</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;The RTT log from using _debug example bootloader project can help. Also, see the&amp;nbsp;&lt;a title="Device Firmware Update process" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_process.html?cp=7_1_3_5_1"&gt;Device Firmware Update process&lt;/a&gt;&amp;nbsp;doc.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What happens after the final execute op code of the DFU?</title><link>https://devzone.nordicsemi.com/thread/304015?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 12:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab61d29c-6631-4912-93b4-e1562f41ef0d</guid><dc:creator>PF-JohnF</dc:creator><description>&lt;p&gt;Thank you for your response&lt;/p&gt;
&lt;p&gt;I used the command &lt;pre class="ui-code" data-mode="text"&gt;nrfutil.exe pkg generate --app-boot-validation NO_VALIDATION --hw-version 52 --sd-req 0x101 --application-version 0xff --application APP2.hex --key-file ../priv.pem APP2.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to generate a .zip file without validation, and kept the old .zip file with validation and compared the power consumption of the two.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the power consumption after the application hex file has finished transmitting:&lt;/p&gt;
&lt;p&gt;With validation:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/with-validation.png" /&gt;&lt;/p&gt;
&lt;p&gt;Without validation:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/without-validation.png" /&gt;&lt;/p&gt;
&lt;p&gt;The first high power state in this graph is the crc/validation check. The power consumed without validation is about half of the power consumed when using validation during the validation step.&lt;/p&gt;
&lt;p&gt;By commenting out or removing the validation check from the postvalidate function in nrf_dfu_validation, power usage is reduced even further.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m confused what happens after the crc check though, and I&amp;#39;m having a tough time to follow the execution path of the code after it leaves nrf_dfu_req_handler. I&amp;#39;m not sure if there is a lot of data being copied to another bank or is it possible that the high power is just caused when the device is reset, or maybe even something else entirely?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What happens after the final execute op code of the DFU?</title><link>https://devzone.nordicsemi.com/thread/303786?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 13:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f232b811-9029-48d1-9f1a-21eb24a11a58</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi John,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to generate the package with&amp;nbsp;&amp;nbsp;--app-boot-validation NO_VALIDATION&amp;nbsp;&lt;span&gt;&amp;nbsp;(skip CRC)&amp;nbsp;&lt;/span&gt;&lt;span&gt;for comparison? Does it help?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/267785.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>