<?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>the problem about go into low power mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38919/the-problem-about-go-into-low-power-mode</link><description>board: custom board nrf52840 
 IDE: keil5 
 SoftDevices: s140 V6.0.0 
 SDK: 15.0.0 
 
 hi, I want to decrease my consumption of my board. 
 Now, i enable the SoftDevices and call sd_app_evt_wait(), the consumption is 12.4 uA. but from the 52840 manual</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Sep 2018 07:50:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38919/the-problem-about-go-into-low-power-mode" /><item><title>RE: the problem about go into low power mode</title><link>https://devzone.nordicsemi.com/thread/150610?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 07:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79bdbe8f-5b32-4c11-b551-a27a3ea1216b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Beike.&lt;/p&gt;
&lt;p&gt;Using &lt;strong&gt;NRF_POWER-&amp;gt;RAM[i].POWERCLR = 0x00030003&lt;/strong&gt; before you call &lt;strong&gt;ble_stack_init()&lt;/strong&gt; should work fine.&lt;/p&gt;
&lt;p&gt;Are you sure you did not use it after you call &lt;strong&gt;ble_stack_init()&lt;/strong&gt;, because that does not work.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the problem about go into low power mode</title><link>https://devzone.nordicsemi.com/thread/150500?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 13:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:424f3aa3-a01e-4185-a90b-2810fbdab833</guid><dc:creator>Beike</dc:creator><description>&lt;p&gt;Hi Andreas. thanks for your answer.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;will&amp;nbsp;test this tomorrow, cal &lt;strong&gt;pwr_init&lt;/strong&gt;()&amp;nbsp;after call &lt;strong&gt;ble_stack_init&lt;/strong&gt;().&lt;/p&gt;
&lt;p&gt;by the way, I&amp;nbsp;use &lt;strong&gt;NRF_POWER-&amp;gt;RAM[i].POWERCLR = 0x00030003&lt;/strong&gt;&amp;nbsp;in stead of&amp;nbsp; &lt;strong&gt;sd_power_ram_power_clr&lt;/strong&gt; before call &lt;strong&gt;ble_stack_init&lt;/strong&gt;(),&amp;nbsp; it result the code jump into&amp;nbsp;&lt;strong&gt;HardFault handler &lt;/strong&gt;function and&amp;nbsp; cant&amp;#39;t download to 52840 anymore.&lt;/p&gt;
&lt;p&gt;can you tell me why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the problem about go into low power mode</title><link>https://devzone.nordicsemi.com/thread/150445?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 10:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f73be8-eb29-4a87-89bf-c15f1afe2486</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Beike.&lt;/p&gt;
&lt;p&gt;If you use &lt;strong&gt;APP_ERROR_CHECK()&lt;/strong&gt; on your &lt;strong&gt;ret_code&lt;/strong&gt; you can find out that this error is found in &lt;strong&gt;nrf_error.h&lt;/strong&gt; on &lt;strong&gt;line 63&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;#define NRF_ERROR_SOFTDEVICE_NOT_ENABLED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (NRF_ERROR_BASE_NUM + 2)&amp;nbsp; ///&amp;lt; SoftDevice has not been enabled&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is because you use the &lt;strong&gt;pwr_init();&lt;/strong&gt; function before you enable the SoftDevice in the &lt;strong&gt;ble_stack_init();&lt;/strong&gt; function.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>