<?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 bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36104/high-current-consumption-in-bootloader</link><description>Hi everyone. 
 In our products I am using the dfu bootloader included in the SDK 10 with very minor modifications affecting only what is advertised. Within the bootloader operation, the current consumption is around 800 uA, which wouldn&amp;#39;t be a problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jul 2018 09:58:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36104/high-current-consumption-in-bootloader" /><item><title>RE: High current consumption in bootloader</title><link>https://devzone.nordicsemi.com/thread/140500?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 09:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf9ec9f-e7d1-428f-8301-8fbfa79345f6</guid><dc:creator>a.calatroni</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;br /&gt;&lt;br /&gt;after plenty of tests I can exclude the bootloader as a source for extra current consumption.&amp;nbsp;I can also exclude my custom hardware, since I get around 200uA of current also on a board where only the SoC&amp;nbsp;is soldered. I need to look into my firmware further then. If I flash the HRM example with S130 to the same board with only the SoC I get around 100 uA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption in bootloader</title><link>https://devzone.nordicsemi.com/thread/139279?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 14:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2884e057-4610-45ff-9c15-42d82c9804ec</guid><dc:creator>a.calatroni</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;br /&gt;&lt;br /&gt;I am using the bootloader in combination with S110 actually. The board has just the Nordic chip (embedded in a SiP by InsightSiP) and nothing else - I soldered one like that just to exclude other effects. Furthermore, if I put the &amp;quot;power_manage&amp;quot; loop directly in the bootloader at an early point (right before &amp;quot;&lt;span&gt;bootloader_dfu_start&amp;quot;)&lt;/span&gt;, the board consumes some 2 uA.&lt;br /&gt;&lt;br /&gt;I will try with the precompiled bootloader hex including S130, although it would be a bit of a problem since I use S110 for all my projects still.&lt;br /&gt;I will also double-check my compilation chain and see that all files which are compiled are really the original versions from Nordic. It should be the case since I have all in a GIT repo so I reverted all the stuff ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption in bootloader</title><link>https://devzone.nordicsemi.com/thread/139254?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 12:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96eaf937-5901-4111-88aa-081f2f0e9910</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Alberto,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m checking here with SDK v10 and S130v1.0 and don&amp;#39;t see that the bootloader itself consumes 800uA.&lt;/p&gt;
&lt;p&gt;If I change the advertising interval APP_ADV_INTERVAL in dfu_transport_ble to 500ms, the current consumption is around 100uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try the same on our nRF51 DK to measure the current consumption ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suspect there was smth else on the board you test consuming current ? SDK v10 has been out for quite a while (2-3 years) we haven&amp;#39;t got any similar report.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption in bootloader</title><link>https://devzone.nordicsemi.com/thread/139203?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 08:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092d02d9-8d58-4452-b23c-5054af9aca3e</guid><dc:creator>a.calatroni</dc:creator><description>&lt;p&gt;Hi Hung Bui and thank you for the prompt answer.&lt;br /&gt;&lt;br /&gt;I exclude the debug mode issue, since I always power-cycle the sensor after flashing. Then&amp;nbsp;I did my homework. I reverted everything to the original&amp;nbsp;SDK 10. The bootloader alone consumes around 800 uA and the device appears as DfuTarg. Then I performed a DFU sending a firmware which in the main only has the following code:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for&lt;/span&gt; (;;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;power_manage();&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;&lt;br /&gt;where &amp;quot;power_manage&amp;quot; is defined as usual:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;static&lt;/span&gt; &lt;span&gt;void&lt;/span&gt; power_manage(&lt;span&gt;void&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uint32_t&lt;/span&gt; err_code = &lt;span&gt;sd_app_evt_wait&lt;/span&gt;();&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;APP_ERROR_CHECK&lt;/span&gt;(err_code);&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;&lt;br /&gt;I checked that the bootloader doesn&amp;#39;t run anymore, in fact there is no device named DfuTarg anymore. The power consumption is nevertheless unaltered, like if the bootloader couldn&amp;#39;t gently shut down things that were used.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption in bootloader</title><link>https://devzone.nordicsemi.com/thread/139092?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 11:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d28ff2c-1011-4667-a2bd-36dd2cd29fbc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Alberto,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it&amp;#39;s normal. 800uA matches with the current consumption of HFCLK or could be device is still in debug mode.&amp;nbsp;&lt;br /&gt;Have you make sure you do a power reset&amp;nbsp;after you flash the device to get it out of debug mode before you do any measurement ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our bootloader shouldn&amp;#39;t let any peripheral running before switching to application. Could you try to test again with unmodified bootloader and try to do DFU update a simple firmware, such as the blinky example ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>