<?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 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42669/sdk15-2-sd-132-freertos-huge-power-consumtpion</link><description>Hei hi. 
 I&amp;#39;m developing simple beacon application with sdk 15.2, sd132 based on freeRTOS on nrf52832. The app and the whole project is built with help of ble_peripheral/ble_app_hrs_freertos example. 
 It works fine but the problem is power consumption</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Jan 2019 06:53:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42669/sdk15-2-sd-132-freertos-huge-power-consumtpion" /><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/167809?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 06:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0aeb88-0339-4b71-bae8-cfaa2967f6a9</guid><dc:creator>Egidijus</dc:creator><description>&lt;p&gt;Thank you. After disabling logger and setting&amp;nbsp;#if 1 in&amp;nbsp;&lt;span&gt;port_cmsis_systick.c&lt;/span&gt;&amp;nbsp;i get result I was looking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/167779?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 21:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29b941b4-434e-4c96-a78e-46d38fe1e67b</guid><dc:creator>flip-flop</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/port_5F00_cmsis_5F00_systick.txt"&gt;devzone.nordicsemi.com/.../port_5F00_cmsis_5F00_systick.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here =)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/167774?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 21:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:508db10c-11ff-4e8f-a6f6-6240444f4399</guid><dc:creator>Egidijus</dc:creator><description>&lt;p&gt;Hi flip,&lt;/p&gt;
&lt;p&gt;Can you share your modifications in&amp;nbsp;&lt;span&gt;port_cmsis_systick.c file? High current consumption is blocking me for using freertos in my application too.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/167636?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 12:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ae3c35-db96-44b3-9489-cb29a4226edf</guid><dc:creator>flip-flop</dc:creator><description>&lt;p&gt;Yup yup. I was comparing two different things but still, I made it!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SDK 15.2 + SD 132 + freeRTOS with&amp;nbsp;&lt;span&gt;ble_app_hrs_freertos example + change in the&amp;nbsp;SDK\external\freertos\portable\CMSIS\port_cmsis_systick.c file =&amp;gt; 1.5uA in sleep. That&amp;#39;s what I was looking for =) Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/167010?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 07:56:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726b7108-7ef1-4283-aa4b-45cfe550531d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi flip,&lt;/p&gt;
&lt;p&gt;I think you are comparing two different things.&lt;/p&gt;
&lt;p&gt;If you want to see the power overhead of FreeRTOS, then you should compare power consumption of two examples which are &lt;span&gt;ble_app_hrs_freertos and&amp;nbsp;ble_app_hrs (without freertos)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think the average current overhead of running the FreeRTOS kernel itself is a bit more than 100uA. The kernel needs to do the bookkeeping and that needs a lot of CPU time. If you are using tickless configuration, then increasing the advertising interval would definitely&amp;nbsp;bring down sole FreeRTOS current overhead too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I am saying is do the comparision between these two examples by increasing the radio parameters. I do not think&amp;nbsp; iBeacon example without FreeRTOS is a fair comparision to do with&amp;nbsp;ble_app_hrs_freertos&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/166792?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 10:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd14cb8a-32f6-4a88-a867-dcf3e925a88c</guid><dc:creator>flip-flop</dc:creator><description>&lt;p&gt;Hi Susheel.&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;First of all, thank you very much for your reply.&lt;/p&gt;
&lt;p&gt;Comment/uncomment the code snippet definitely have a&amp;nbsp;huge impact on power consumption. In my case: commented snippet: power consumption: 1mA. Uncommented: 7.5mA. This is power consumption on&amp;nbsp;&lt;span&gt;ble_app_hrs_freertos example (The GATT is disabled in the main, peer manager is there).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But 1mA is still very far from 1.6uA. I&amp;#39;m referencing to the iBeacon example. For example, if I set adv. interval to 2 seconds, I measure between-advertisement-current 1.6uA. So it seems like the SD is inactive when there&amp;#39;s no need for it. The same case with simple freeRTOS application without BLE. FreeRTOS goes to 1.6uA sleep when there&amp;#39;s no task to execute. So I do not understand why BLE and freeRTOS combined do not work. Do I need to maybe use app_scheaduler for BLE events or peer_manager? I&amp;#39;m&amp;nbsp;feeling like I&amp;#39;m missing something...&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK15.2 + SD 132 + freeRTOS = huge power consumtpion</title><link>https://devzone.nordicsemi.com/thread/166726?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 08:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d77685-37c7-4be1-9682-cf62eb2e9de3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi flip,&lt;/p&gt;
&lt;p&gt;I think there is some anamoly with sd_app_evt_wait using MWU peripheral (unconfirmed)&lt;/p&gt;
&lt;p&gt;If you see the link &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35386/application-with-freertos---lowest-possible-current-in-idle/136183#136183"&gt;here&lt;/a&gt;, I have added the #if 0 to comment out sd_app_evt_wait as I have seen some board use a lot of power using it. But later few customers said that commenting out sd_app_evt_wait results in increased power. So if on your board, sd_app_evt_wait consumes less power, then comment out the &amp;#39;#if 0&amp;#39; part in &lt;span&gt;port_cmsis_systick.c file.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>