<?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>osMessageGet(main_msgBox, osWaitForever) with respect to CPU sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81959/osmessageget-main_msgbox-oswaitforever-with-respect-to-cpu-sleep</link><description>nRF52832, SD 132, RTOS, SDK13 
 
 Can anyone let me know how CPU will do when waiting for a message like below? 
 
 evt = osMessageGet(main_msgBox, osWaitForever); //wait for q box forever 
 
 If CPU is running actively and waiting for a message, how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Nov 2021 13:02:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81959/osmessageget-main_msgbox-oswaitforever-with-respect-to-cpu-sleep" /><item><title>RE: osMessageGet(main_msgBox, osWaitForever) with respect to CPU sleep</title><link>https://devzone.nordicsemi.com/thread/340343?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 13:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28ba47a1-0271-4a15-9199-93081b29dec9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If there is nothing else to do then usually RTOS will switch over to the IDLE thread. For example in &lt;a href="https://www.freertos.org/low-power-tickless-rtos.html"&gt;FreeRTOS &lt;/a&gt;you can set the CPU into low power mode when it runs the IDLE thread and the IDLE hook function.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>