<?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>SDK15.2 FreeRTOS Consumes high current when SD enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46882/sdk15-2-freertos-consumes-high-current-when-sd-enabled</link><description>I&amp;#39;ve noticed during a project migration that the FreeRTOS on SDK 15.2 seems to consume quite alot of current, 0.8mA when the SoftDevice is enabled. I&amp;#39;ve compared to the example HRS FreeRTOS project which also consumes the same high current of 0.8mA regardless</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2019 11:08:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46882/sdk15-2-freertos-consumes-high-current-when-sd-enabled" /><item><title>RE: SDK15.2 FreeRTOS Consumes high current when SD enabled</title><link>https://devzone.nordicsemi.com/thread/185926?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 11:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:099bed15-e9a9-4f8a-8ba9-52350b91cb89</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;7mA does not look normal on tickless idle on PCA10040, can you please give me your project for a quick smoke test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 FreeRTOS Consumes high current when SD enabled</title><link>https://devzone.nordicsemi.com/thread/185566?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 18:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d17eed5-46f9-446f-b1b2-1847ced95e81</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Please note all my tests have been run on both the PCA10040 and custom hardware. Testing on both my own firmware platform, and the hrs_freertos example in SDK 15.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 FreeRTOS Consumes high current when SD enabled</title><link>https://devzone.nordicsemi.com/thread/185562?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 17:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a486e3b-2811-4a3d-9349-9bf5b4c6a00b</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;If I enforce my own while(1){ sd_app_evt_wait();}&amp;nbsp; after I initialize the Softdevice,&amp;nbsp; it Idles at the expected current.&amp;nbsp; But when I let the&amp;nbsp;port_cmsis_systick.c file handle the idle loop the current consumption goes back up.&amp;nbsp; In fact with&amp;nbsp;sd_app_evt_wait(); enabled in that file, consumption idles high ~7mA.&amp;nbsp; &amp;nbsp;I did a compare of my&amp;nbsp;&lt;span&gt;port_cmsis_systick.c compared to SDK 15.2, and they are essentially the same.&amp;nbsp; Were there any other fixes implemented under the hood for freeRTOS in 15.3?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 FreeRTOS Consumes high current when SD enabled</title><link>https://devzone.nordicsemi.com/thread/185560?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 16:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6be85bf-47c3-41e5-a0f0-304d2eb3379a</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;sd_app_evt_wait(); idles at an even higher current then using _WFE&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also noted that even placing a while(1){ _WFE();}&amp;nbsp; shows an idle current of 0.8mA.&amp;nbsp; Simply initializing the Softdevice is causing this consumption, regarding of whether theres radio activity or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 FreeRTOS Consumes high current when SD enabled</title><link>https://devzone.nordicsemi.com/thread/185422?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 10:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f68b56b-b356-43a0-bd8b-f24f6a4a809f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;can you do a simple idle test with the following change in SDK\external\freertos\portable\CMSIS\port_cmsis_systick.c file-&amp;gt;&amp;nbsp;vPortSuppressTicksAndSleep()&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if 0  
#ifdef SOFTDEVICE_PRESENT
            if (nrf_sdh_is_enabled())
            {
                uint32_t err_code = sd_app_evt_wait();
                APP_ERROR_CHECK(err_code);
            }
            else
#endif
#endif // (NRFFOSDK-11174)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Notice the addition of #if 0 and #endif which forces the function to use __WFE instead.and see if you have better results?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>