<?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>Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42972/over-consumption-just-after-a-flash-and-no-problem-after-an-hardware-reset</link><description>Hi, 
 Recently I have migrated my app of SDK13 to SDK15.2. It&amp;#39;s a little bit complicate but it works with patience, thanks for the migration guide ! 
 My problem now is when I flash my app with the new software, the consumption is about ~2.7mA and after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Mar 2019 13:47:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42972/over-consumption-just-after-a-flash-and-no-problem-after-an-hardware-reset" /><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/174818?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 13:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9c0564e-23a2-48fa-a9a0-61a92b00ca68</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I find the answer !&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I use J-Link RTT viewer to log the nrf_log_raw_info(), and if this application run on the PC and if you do not a proper disconnect the device, the over consumption appear. So for my prod I just do not have to lunch the RTT viewer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Romain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/169429?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 08:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a85cc3b-07c9-43f0-8d83-4ff6bc60f7a1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Romain,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just to confirm what you are seeing here.&lt;/p&gt;
&lt;p&gt;1. The current consumption goes high after debug or pinreset (around 2.7 mA)&lt;/p&gt;
&lt;p&gt;2. Performing this sequence returns the power consumption to ~2 uA:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SWDSelect
SWDWriteDP 1 0x04000000
exit&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. Simple program that enters __WFE() also consumes ~2.7 mA when reset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please correct me if I&amp;#39;ve misunderstood&amp;nbsp;the process, or if there&amp;#39;s any mistakes from my side.&lt;/p&gt;
&lt;p&gt;Q1: Have you checked if there&amp;#39;s any faults occurring (hard fault, usage fault, etc)? This current consumption does not match any idle peripheral currents.&lt;/p&gt;
&lt;p&gt;Q2: Do you see this on more than one board? Is this a specific error on one board, or is the phenomenon present on more boards?&lt;/p&gt;
&lt;p&gt;Q3: Have you tried implementing blocking fault handlers (that prints or blinks a LED) to see if it goes in? Or blinking a LED in your main-context to see if the program works as it should?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/169360?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 16:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac304073-5011-4426-9b50-1c53bf73ff77</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The problem is still present, I have&amp;nbsp;dismounted all components except NRF52, quartz and cap and it is still present.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Now I will be off for the next days, I will back to the office on Monday of next week.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So if you have so more tests I will be taking time to answer,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Romain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/169312?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0578952b-e038-4081-a480-a1692e846a55</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Romain,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Haven&amp;#39;t heard anything for some days now. Is the problem still present?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168896?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 14:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d55f0ca-e1a0-41c0-82fb-52c1bb5ad3f1</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;Hi, I have test your code and I have the same result.&lt;/p&gt;
&lt;p&gt;I doubt is the hardware because when I send this commande by nrfjprog the consumption goes down without hardware reset.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SWDSelect
SWDWriteDP 1 0x04000000
exit&lt;br /&gt;&lt;br /&gt;But I will test with unmount all peripheral on my card.&lt;br /&gt;&lt;br /&gt;Best regards.&lt;br /&gt;Romain.&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168871?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 12:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c966a2f1-41ea-44da-8178-564d89a92804</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to replicate this with similar commands as you are using (in ubuntu 18.10), but it goes into &amp;lt; 5 uA sleep mode at my end. Also tried starting up the JLinkGDBServer and exiting it to see if this leaves the DIF in a power hungry state, but the current consumption still dropped.&lt;/p&gt;
&lt;p&gt;Is it possible that there&amp;#39;s something else on your board that is in a configured state after the nRF is reset?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try programming your application with a simple while loop with WFE, just to see if the setup is OK? Here&amp;#39;s a modified peripherals/blinky:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    /* Configure board. */
    bsp_board_init(BSP_INIT_LEDS);
    for (int i = 0; i &amp;lt; LEDS_NUMBER; i++)
    {
        bsp_board_led_invert(i);
        nrf_delay_ms(500);
    }
    /* Toggle LEDs. */
    while (true)
    {
        __WFE();
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Blinky can be offset to accommodate the softdevice (../blinky/pca10040/s132/).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168803?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 08:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4571eeda-c8c3-4cc3-a57d-dec70b57c8eb</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have made the upgrade of two programs and delete the old version and nothing change.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Romain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168751?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 15:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d686f72b-032c-4a71-a6ab-346f2a4ebed8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not see any issues with the commands that you are using. This should give you a low power consumption and detach the debugger IF.&lt;/p&gt;
&lt;p&gt;Could you ensure that you have the latest JLink Segger drivers (downloadable from here:&amp;nbsp;&lt;a href="https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack"&gt;https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;and the latest nrfjprog version downloadable from here:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then try to see if there&amp;#39;s any difference?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168542?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 16:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4ee8fb-8322-4483-b786-04a538d9c994</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I can&amp;#39;t supply all my script but I can send you all the command send to the nrfJprog :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --eraseall
nrfjprog --family NRF52 --program sofDeviceFiles.hex --chiperase --verify
nrfjprog --family NRF52 --program bootloaderFiles.hex --verify --quiet
nrfjprog --family NRF52 --program applicationFiles.hex --verify --quiet
nrfjprog --family NRF52 --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Romain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168520?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 15:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca1e3283-a0a2-4845-976a-84227d346eb3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Keil does not have the option to set readback protection.&lt;/p&gt;
&lt;p&gt;If you do not set &amp;quot;--rbp&amp;quot;, then its not readback protected, so all reset sources should be available (including pin-reset if enabled).&lt;/p&gt;
&lt;p&gt;Could you show the whole script that you are running?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168256?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 13:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af3f1957-a0c8-4004-9ac8-db191db403fd</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;On my bash script, I&amp;#39;m not using &amp;quot;--rbp&amp;quot; I&amp;#39;m used :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --family NRF52 --program app_thingy_s132.hex --verify&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if it is active in default.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On KEIL, it&amp;#39;s the default project I don&amp;#39;t know where I can check that could say to me where I can check ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168251?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 13:27:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fca9603-7fcd-4151-850b-9e93d6189bab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Have you readback protected your device? If yes; then only a set of reset commands are available per the nrfjprog help output.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;     --rbp &amp;lt;level&amp;gt;           Enables the readback protection mechanism. Valid
                             argument options are CR0 and ALL.
                             Limitations:
                             For nRF52 devices, the CR0 argument option is
                             invalid.
                             Side effects:
                             After an --rbp operation is performed, the
                             available operations are reduced.
                             For nRF51 devices, and if argument option ALL is
                             used, --pinreset will not work on certain older
                             devices.
                             For nRF52 devices, only --pinreset, --debugreset
                             or --recover operations are available after --rbp.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168243?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 13:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ae86ce3-277b-4322-b8a6-8350c255663a</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;I don&amp;#39;t think so, because when I made this with Nrfjprog&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SWDSelect
SWDWriteDP 1 0x04000000
exit&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The power pass to ~2&amp;micro;A.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Romain.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168233?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 13:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b268b4dd-452a-46ab-831d-f09a5a086223</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Is there anything on your own board that may go into a high-current consumption state if the nRF is reset, and not the rest of the board? Like an accelerometer or similar?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168225?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 12:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:009101da-2ca6-4123-aec7-f92a34293c1d</guid><dc:creator>RomainP</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I do a reset, so Keil do it and the programme RUN, and in my bash program I use this command :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --family NRF52 --reset at the end to start the application.&lt;/p&gt;
&lt;p&gt;The application run but with some mA add to the normal consumption.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Romain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Over consumption just after a flash and no problem after an hardware reset</title><link>https://devzone.nordicsemi.com/thread/168218?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 12:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c85264-8d41-4571-96f2-fe1521a04ff9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When programming, the nRF is usually left in a halted state. A reset (or a run) will allow it to start CPU execution again.&lt;/p&gt;
&lt;p&gt;You can either do a reset, or a run to start your application after programming.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>