<?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>FreeRTOS power consumption and idle hook</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54201/freertos-power-consumption-and-idle-hook</link><description>I&amp;#39;m using the nRF52840 DK to develop my application using FreeRTOS while trying to achieve the lowest possible consumption. I&amp;#39;m having some issues so I went back to the ble_app_hrs_freertos_pca10056_s140 example. 
 I&amp;#39;m on SDK 16.0.0 and while running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2019 07:16:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54201/freertos-power-consumption-and-idle-hook" /><item><title>RE: FreeRTOS power consumption and idle hook</title><link>https://devzone.nordicsemi.com/thread/219806?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 07:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2499818d-ec7d-4800-b4dc-e127f27ef12a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad you were able to get it working!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS power consumption and idle hook</title><link>https://devzone.nordicsemi.com/thread/219713?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 14:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eb53f05-0852-4fd5-b5a3-b9e1bda03d47</guid><dc:creator>Andres</dc:creator><description>&lt;p&gt;Ok, reverting the change did it!&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&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using DK PCA10056 1.1.0, 2019.12 and I&amp;#39;m using SoftDevice S140 v7.0.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS power consumption and idle hook</title><link>https://devzone.nordicsemi.com/thread/219585?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 06:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a26a27-26ae-4087-9e98-825c6c212135</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you try reverting the change? This has also proven to help in some cases. Can you add the build version of your DK (the numbers below&amp;nbsp;&lt;strong&gt;PCA10056&lt;/strong&gt; on your DK)&amp;nbsp;as well as the SoftDevice version you&amp;#39;re using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS power consumption and idle hook</title><link>https://devzone.nordicsemi.com/thread/219568?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 02:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec300039-fb12-401c-9f04-11940c86c501</guid><dc:creator>Andres</dc:creator><description>&lt;p&gt;Hi Simonr, unfortunately, that code was modified as recommended in that post in SDK 16.0.0 so that doesn&amp;#39;t seem to be the problem in this case.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        configPRE_SLEEP_PROCESSING( xModifiableIdleTime );
        if ( xModifiableIdleTime &amp;gt; 0 )
        {
#ifdef SOFTDEVICE_PRESENT
            if (nrf_sdh_is_enabled())
            {
                uint32_t err_code = sd_app_evt_wait();
                APP_ERROR_CHECK(err_code);
            }
            else
#endif
            {&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS power consumption and idle hook</title><link>https://devzone.nordicsemi.com/thread/219468?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 12:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d5fdcef-d1f9-4cf9-b87f-49a91629736c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35073/high-power-consumption-of-softdevice"&gt; this case&lt;/a&gt;, as changing a few lines in the port_cmsis_systick.c file has helped multiple people with an SDK bug causing FreeRTOS applications not to go to sleep properly.&lt;/p&gt;
&lt;p&gt;If this doesn&amp;#39;t help, please say so as well as post what SoftDevice version you&amp;#39;re on, and I&amp;#39;ll look further into it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>