<?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>High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52520/high-current-consumption-in-secure-dfu-bootloader-for-sdk-14-2</link><description>Hi Everyone, 
 I am using nRF52832 with SDK v14.2 and SD v5.0.0 on a custom chip. 
 Recently i included DFU support to our application. It turns out that secure bootloader is drawing a constant current of &amp;gt;2 mA. 
 Before integrating secure bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Sep 2019 13:30:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52520/high-current-consumption-in-secure-dfu-bootloader-for-sdk-14-2" /><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212624?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 13:30:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c5bc44-f739-465b-bb3c-b5dee51aba06</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What exactly is your application supposed/expected to do? If it starts up, then does a quick operation before going to sleep (system OFF) mode, which requires it to reset upon wake up, and does this frequently, that will cause the startup and the bootloader activation to trigger often, and might draw current. Please try to enable logging, and print a message upon&amp;nbsp;reset to check if your application restarts frequently.&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><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212445?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 06:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c52cc12-ae93-463d-9531-e7556d194129</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Right now i am measuring average current using a power supply. If i run a standalone application without secure bootloader, it does not crash. Although application is not crashing w/ bootoader as well since i can see application is performing as expected. It&amp;#39;s just the current consumption has gone high.&lt;/p&gt;
&lt;p&gt;What would you suggest the reasons for application crashing with bootloader earlier?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212248?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 10:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf317ae8-22d9-4f97-82e1-fc8521926ce1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What might happen, is that your application crashes and constantly resets, which causes this excess current consumption as the bootloader is activated upon a restart. How are you measuring the current consumption? If you use the PPK for example, you should see the startup-spike over and over. You could also enable logging and call and print something at the start of your main loop, to check if the application is constantly resetting.&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><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212209?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 08:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b571245-ec05-4d64-be5c-e4f3b5bfe5af</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Exactly! It is really high. This is when device is powered down. Switching off some peripherals as well in application to minimize the current.&lt;/p&gt;
&lt;p&gt;By bond sharing, do you mean bond support? Yes, i am using that for buttonless DFU service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212177?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 06:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f953e7a2-ad7a-46f8-ab31-1cada1f1fdd4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Samarth"]If i use bootloader + application, current consumption is around 2.4 mA once i power the device down.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;And what is this number when the device is on? It seems way too high, and I don&amp;#39;t think the bootloader alone is to blame. It must be causing something else to draw power as well (even though it shouldn&amp;#39;t, as the bootloader and application are independent of one another).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for your &amp;quot;silly question&amp;quot;, this should be fine actually. As long as you don&amp;#39;t use bond-sharing in your application, and use the same SoftDevice version for the bootloader and application, it should not be a problem using different SDK versions for the two.&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><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212158?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 01:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7411caf-8fcf-4b3c-81e2-346627166f9b</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;I have a silly question. Can i run secure bootloader on SDK 15.0.0 and application on SDK 14.2? Because migrating to a newer SDK for the whole application might take time i believe. Any suggestions?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/212155?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 01:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1474d00-c237-4094-bea4-eeaa57ea906b</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If i just use bootloader, current consumption is around 2.3 mA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If i just use application, current consumption is 30 uA once i power it down.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If i use bootloader + application, current consumption is around 2.4 mA once i power the device down.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/211531?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 12:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aef1b55-017f-4844-a989-9b6b828b36e3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you see this current consumption when you&amp;#39;re running the application or when the bootloader is running? There must be something keeping the CPU awake that causes this extra current consumption if you&amp;#39;re running the application, as the bootloader shouldn&amp;#39;t draw any excess current when it isn&amp;#39;t active. Did you add any peripherals what so ever that might not be uninitialized properly?&lt;/p&gt;
&lt;p&gt;In any case, I think it would be&amp;nbsp;a good idea&amp;nbsp;to migrate to the newer SDK,&amp;nbsp;as the bootloader was not only optimized in current consumption but also in throughput in SDK 15.0.0. If you&amp;#39;re interested, you can take a look at the migration guide &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fmigration.html&amp;amp;resultof=&amp;quot;migration&amp;quot;%20&amp;quot;migrat&amp;quot;%20&amp;quot;guide&amp;quot;%20&amp;quot;guid&amp;quot;%20"&gt;here&lt;/a&gt;.&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><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/211469?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 08:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dd2ab05-d2b8-4675-920f-3eb3cc226ff6</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Okay,&amp;nbsp; that&amp;#39;s good to know. Although, may i ask if you did any modifications on the bootloader code? settings maybe?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/211468?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 08:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c4e05b-973d-42b0-b4df-623aa1df02e2</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;OK. All I can say that I have a custom board with SDK 14.2 DFU and the the power consumption in sleep mode is around 10uA, so the bootloader itself is not a culprit in your case&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/211466?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 08:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d661395c-0642-4304-beb5-f948b4fa9431</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;UART is disabled&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High Current Consumption in Secure DFU Bootloader for SDK 14.2</title><link>https://devzone.nordicsemi.com/thread/211463?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 08:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40edc3d0-dc22-4b1b-9160-d1a339de8912</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;make sure UART is still disabled&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>