<?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>IDLE task behaviour of FreeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36717/idle-task-behaviour-of-freertos</link><description>Hi, 
 
 I use FreeRTOS for ble application on nRF52840. 
 To save current consumption, I want to add __WFE() to portTASK_FUNCTION(). 
 There is a comment in the function as below. 
 /* It is not desirable to suspend then resume the scheduler on each iteration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Oct 2018 08:47:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36717/idle-task-behaviour-of-freertos" /><item><title>RE: IDLE task behaviour of FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/153148?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 08:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62d59126-0447-417d-9c11-af33d7bad0c7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It means that the calculation of the expected idle time is re calculated without the scheduler being suspended. The results are not necessarily valid since the scheduler was not suspended and it can preempt this context after the calculation and they estimated time will not be correct. But it will not create any bad side effects apart from that the device will wake little early if that happens. So not to worry too much about this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IDLE task behaviour of FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/152193?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 11:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97a747b7-a844-4a5f-a255-e8e4a2e9e61e</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;Thank you Aryan.&lt;/p&gt;
&lt;p&gt;I understand your suggestion.&lt;/p&gt;
&lt;p&gt;However, I want to know the meaning of &amp;quot;Therefore, a preliminary test of the expected idle time is performed without the&lt;br /&gt;scheduler suspended. The result here is not necessarily valid.&amp;quot;&lt;/p&gt;
&lt;p&gt;Could you describe this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IDLE task behaviour of FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/142154?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 12:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c3bc5c-8f09-4c9b-9cec-8adc89bf4354</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If you are not using tickless idle, then I would recommend you to sleep (_WFE) in&amp;nbsp;vApplicationIdleHook function instead to be very safe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>