<?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>Sleep current with FreeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46803/sleep-current-with-freertos</link><description>Hello, 
 I use NRF52832 and nRF5_SDK_15.2.0 for our custom board. 
 Also, FreeRTOS(Tickless IDLE is enabled) is used. And, System ON mode is used for sleep mode. 
 
 Now, I am testing sleep mode. But sleep current is higher than I expected. 
 Average</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2019 16:38:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46803/sleep-current-with-freertos" /><item><title>RE: Sleep current with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/185558?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 16:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee22ed8-a119-4dec-9479-27f0391f5810</guid><dc:creator>Chongchun Moon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Here is update.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; After I changed GPIO(to wake up from sleep) setting. I changed GPIO accuracy setting.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Current consumption is 50uA now. I think it looks okay for now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Now,&amp;nbsp; problem is BLE doesn&amp;#39;t work properly after re-enable soft device from sleep.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Maybe, I need to create another ticket.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Chongchun Moon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/185291?ContentTypeID=1</link><pubDate>Sat, 04 May 2019 13:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2d86fd-edba-4b3d-b167-f6b089e5e25e</guid><dc:creator>Chongchun Moon</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Here is some update for this issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;After disabling softdevice by calling&amp;nbsp;sd_softdevice_disable(), Current consumption is reduced approx. 300uA.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;There is no other interrupt occurred after that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;In 300uA current consumption, I guess that HFCLK draws 250uA as I checked register value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;How can I disable HFCLK block? I tried stop HFCLK block. But It doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Chongchun Moon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/185241?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 15:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84fd6bde-8373-4cf1-8b0f-787fc9711eeb</guid><dc:creator>Chongchun Moon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you for respond.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Regarding to checking NVIC-&amp;gt;&lt;span&gt;ISPR[0] and NVIC-&amp;gt;ISPR[1].&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; I already checked that part using GPIOs as you can see above.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; In the&amp;nbsp;port_cmsis_systick.c which I uploaded above, If There are some pending interrupt in&amp;nbsp;NVIC-&amp;gt;ISPR[0] and NVIC-&amp;gt;ISPR[1],&amp;nbsp; code will run outside of &amp;quot;while (0 == (NVIC-&amp;gt;ISPR[0] | NVIC-&amp;gt;ISPR[1]))&amp;quot; and GPIO 10 pin will be changed. But, It is not changed. So, It is supposed that there is unhandled interrupt from my application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Do I need to check those register(NVIC-&amp;gt;ISPR[0] and NVIC-&amp;gt;ISPR[1]) in other way?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;If so, Please guide me to do that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;By the way, What&amp;#39;s average current of CPU when softdevice is used and CPU is sleep mode?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; Chongchun Moon.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/185145?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 11:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:663553ec-1058-4eb6-964f-7f42d25e35d6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your observations are correct.&lt;/p&gt;
&lt;p&gt;the sd_app_evt_wait filters the SD events and makes sure that the application is not awake until there is any app specific interrupt/event.&lt;/p&gt;
&lt;p&gt;The change we did to add #if 0 for&amp;nbsp;(NRFFOSDK-11174) was on some specific chips which has poor sleep performance for sd_app_evt_wait. But it looks like you should not use this patch. Please change the codeto use sd_app_evt_wait in your case to get better&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your system is not going to sleep with sd_app_evt_wait, then I would suggest you to print out the value for&amp;nbsp;NVIC-&amp;gt;ISPR[0] and NVIC-&amp;gt;ISPR[1] separately to see if there are any application specific interrupts that are pending and your application is not servicing them for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>