<?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>low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57581/low-current-value-in-sleep_mode_enter</link><description>Hi, 
 I am using 
 
 Custom Board(nRF52840) 
 SDK 15.3.0 
 Keil IDE 
 The soft device is S140 
 JLinkRTTViewer for debug 
 
 My board has two leds and two buttons for door open / close.
When entering the System Off mode using the sleep_mode_enter () function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Feb 2020 00:58:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57581/low-current-value-in-sleep_mode_enter" /><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/235296?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 00:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ebca8e-f22b-434f-8aee-743200ece73c</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The cause of the reset is due to missing timers_init ().&lt;/p&gt;
&lt;p&gt;Added timers_init (), so conn_params_init () run successfully.&lt;/p&gt;
&lt;p&gt;The way to wakeup from systemoff is &amp;quot; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42272/nrf51422-cannot-be-waken-after-sleep-wake-quite-a-few-times/173257#173257"&gt;devzone.nordicsemi.com/.../173257&lt;/a&gt; &amp;quot; referenced.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Current consumption ranges from 0.1uA to 0.2uA in SystemOff mode.&lt;/p&gt;
&lt;p&gt;Thank you for your kind reply.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234993?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 16:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7964da56-21e6-4a66-b55e-22728fab48a6</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hello, you need to debug the application. Start the debugger and check the return values for all functions. Set breakpoints in main to see how far it goes before it resets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234768?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 01:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607357f2-b1f1-41e5-9ebb-a3fb641f0220</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your quick and friendly reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I agree with you too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; But looking at the source code&lt;/span&gt;&lt;span&gt; I can&amp;#39;t figure out where this happens.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I zip the program and attach it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think it has entered SystemOff mode as the current draw drops to 0.6 ~ 0.7uA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sokey-_2D00_-52810.zip"&gt;devzone.nordicsemi.com/.../sokey-_2D00_-52810.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234607?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 10:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eff8d42-8013-46ae-900c-00846f124c83</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, the code is resetting. It starts the LFXO which takes 250ms, and during this time it&amp;#39;s in idle mode consuming about 2uA. Then something happens and it resets. It never reaches the SYSTEMOFF line. So the current bursts you are seeing is the chip resetting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234534?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 01:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8361c3-ecb4-49e7-b287-de753228e4f6</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using s112 for 52810.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I attached a hexa file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I always appreciate your kind response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52810_5F00_xxaa.hex"&gt;devzone.nordicsemi.com/.../nrf52810_5F00_xxaa.hex&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234417?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 13:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33bc8734-c9db-4af1-8457-8024f0b786e0</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you sure that the code actually goes all the way to NRF_POWER-&amp;gt;SYSTEMOFF = 1 line? I&amp;#39;m thinking that it hard faults and resets before it gets to that line, and that the current jumps you are seeing on the multimeter is actually the device restarting, over and over again.&lt;/p&gt;
&lt;p&gt;Can you post the hex-file here, then I can try to run it and see what happens. If you can make sure that it is possible to run on a DK, not just your custom hardware, that would be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234294?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 02:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7968f34f-91f1-40bb-b8fd-f045ded1bc79</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I ran the code you recommended.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I also ran the existing code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I&amp;#39;ve attached a video clip of the execution of the two kinds of code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I attached sdk_config.h together.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20200214_5F00_104113.mp4"&gt;devzone.nordicsemi.com/.../20200214_5F00_104113.mp4&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20200214_5F00_104227.mp4"&gt;devzone.nordicsemi.com/.../20200214_5F00_104227.mp4&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8206.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../8206.sdk_5F00_config.h&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234253?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 16:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5cb48e6-f1f9-4664-a0f0-e0da99a7d5e8</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, can you try to run just this code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void){
    NRF_POWER-&amp;gt;SYSTEMOFF = 1;
    for(;;){}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is the current consumption running the above code?&lt;/p&gt;
&lt;p&gt;Can you describe your measurement setup? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/234160?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 11:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:304381d5-14e8-4f60-a456-9d24a4ed1faa</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We changed from 52840 to 52810.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Other conditions are the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I commented out init () according to your advice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; The measurement results of the current consumption varied between 0.6uA and 15.8uA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I do not think this is the normal case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I do not know why the current consumption changes in system off mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I ask for your advice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main_2D00_qna2.txt"&gt;devzone.nordicsemi.com/.../main_2D00_qna2.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/233643?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 08:12:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e876f998-37ed-4cee-988f-3ba52bb6303f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;1. Yes.&lt;/p&gt;
&lt;p&gt;2. You can always use external clock yes, check out NRF_SDH_CLOCK_LF_SRC and&amp;nbsp;NRF_SDH_CLOCK_LF_ACCURACY in sdk_config.h&lt;/p&gt;
&lt;p&gt;3. My next suggestion is to try to comment out init() code until you can identify the source of the current. What is the chip markings on the nRF52840 you are using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/233626?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 02:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e377d92-2660-48c8-9609-986c88ab8a68</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your kind reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. By enabling and populating the DC/DC converter&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; #define POWER_ENABLED 1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#define POWER_CONFIG_DEFAULT_DCDCEN 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;err_code = sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Is it correct ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.&amp;nbsp;by enabling/populating the 32kHz LFCLK crystal&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I use BLE and the Advertising Interval is 1 second.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Can I use the 32KHz LFCLK Crystal even in this case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;How can I set if it is available?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp;I suspect floating input pin&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;I attach a function that initializes gpio and led.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Each input pin has a hardware pull-up&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Alex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gpio.c"&gt;devzone.nordicsemi.com/.../gpio.c&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low current value in sleep_mode_enter ()</title><link>https://devzone.nordicsemi.com/thread/233468?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 09:44:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c3ba10-5a57-496c-9616-981012048184</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You may check out:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I suspect floating input pin; for instance you have configured a pin as input, however the pin is not connected to a defined level (e.g. low or high).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>