<?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>nRF9160 dk in sleep mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54150/nrf9160-dk-in-sleep-mode</link><description>Hello All, 
 I am measuring the nRF9160 current in the sleep mode(program with just k_cpu_idle(); command) but still I am getting 530uA current. I have also tried to change the configuration files of SPM and board conf files as there was possibility of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Nov 2019 10:15:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54150/nrf9160-dk-in-sleep-mode" /><item><title>RE: nRF9160 dk in sleep mode</title><link>https://devzone.nordicsemi.com/thread/219243?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2019 10:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79083c96-906d-486b-accc-db809e686466</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;
[quote user="Ubaid"]1. So, is there any way to reach to 1.4uA during the sleep mode?[/quote]
&lt;p&gt;You have enter SYSTEMOFF mode (with no RAM retention) to get this value. Note that the RTC and LFCLK cannot run in this power mode, and you can only wake up on pin. On wakeup, the device will run from reset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Ubaid"]2. secondly, I am using UART in my application and I need it to activate/deactivate it within my program(only when reading is required from UART) and remain deactivated in sleep modes?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;If you need UART to run in sleep mode, then you will have a penalty of approx. 500 uA in sleep. Do you only need the TX part? If so, you can turn off the RXD, like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_gps/src/main.c#L214"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_gps/src/main.c#L214&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Ubaid"]Now, I am able to reduce the current consumption to 66uA [/quote]
&lt;p&gt;What I did was to take the hello_world, add &amp;quot;CONFIG_SERIAL=n&amp;quot;, then configure that with board &amp;quot;nrf9160_pca10090&amp;quot; (ie: secure region), then measure the current consumption (&amp;lt; 5 uA on my DK):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    //printk(&amp;quot;Hello World! %s\n&amp;quot;, CONFIG_BOARD);
    while(1) k_cpu_idle();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I added the spm.conf, which has &amp;quot;CONFIG_SERIAL=n&amp;quot;, edited the CMakeLists.txt to have &amp;quot;spm_CONF_FILE&amp;quot; set, then configure the project with board &amp;quot;nrf9160_pca10090&lt;strong&gt;ns&lt;/strong&gt;&amp;quot;, and measured the same current consumption (&amp;lt; 5 uA).&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;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 dk in sleep mode</title><link>https://devzone.nordicsemi.com/thread/219228?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2019 09:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ea432a5-9f15-4ec7-b5e0-298eaac69a57</guid><dc:creator>Ubaid</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all, thank you Hakon for the help. Now, I am able to reduce the current consumption to 66uA by using the method you described in your last responce. But still, it is alot more than which is described in documentation. For reference snapshot of document is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sleep.png" /&gt;&lt;/p&gt;
&lt;p&gt;1. So, is there any way to reach to 1.4uA during the sleep mode?&lt;/p&gt;
&lt;p&gt;2. secondly, I am using UART in my application and I need it to activate/deactivate it within my program(only when reading is required from UART) and remain deactivated in sleep modes?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Ubaid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 dk in sleep mode</title><link>https://devzone.nordicsemi.com/thread/219172?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 21:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b8987be-9e64-447b-afb6-027df346facf</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;You&amp;#39;ll need to disable UART in both your application and in SPM, to ensure that the peripheral clock tree does not run while you&amp;#39;re in sleep.&lt;/p&gt;
&lt;p&gt;To&amp;nbsp;set the SPM configuration from your project, you can set a .conf specifically for SPM, like done in the lte_ble_gateway CMakeLists:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/lte_ble_gateway/CMakeLists.txt#L15"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/lte_ble_gateway/CMakeLists.txt#L15&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above case, its named &amp;quot;child_secure_partition_manager.conf&amp;quot;, and it should hold:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And your non-secure application&amp;#39;s prj.conf should also hold the same config to disable serial.&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: nRF9160 dk in sleep mode</title><link>https://devzone.nordicsemi.com/thread/219112?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 15:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d7b298-3797-44e3-a690-cf00623fbdb8</guid><dc:creator>Ubaid</dc:creator><description>&lt;p&gt;my src code is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;

void main(void)
{	
       k_cpu_idle();	

}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and proj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_TRUSTED_EXECUTION_NONSECURE=y
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>