<?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>Current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51146/current-consumption</link><description>Hi, 
 I tried to monitor current consumption of my device. I used 
 
 and then used 
 
 I saw something like this 
 
 There are spikes on everywhere. 
 
 If I comment out sd_app_evt_wait(); or last __WFE(); it beacomes like that 
 
 
 I am using sdk 15</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2019 08:36:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51146/current-consumption" /><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205795?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ceea7e-cbf9-4ec9-925b-64deb1cebb7a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;These are just calls that check for idle_state_handle I think, and won&amp;#39;t be anything to worry about. I&amp;#39;m sure you do see the change in avg. current consumption with and without idle_state_handle though.&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205640?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 13:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30ca75a5-6358-4866-a77d-113b1e308dee</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;Thank you so much for your effort.&lt;/p&gt;
&lt;p&gt;When you comment out&amp;nbsp;idle_state_handle function in those examples, lines in&amp;nbsp;your pictures will become more stable. As I said before I was working on&amp;nbsp;&lt;strong&gt;ble_app_blinky&lt;/strong&gt; example before, and there ware no spikes with or without power management functions.&lt;/p&gt;
&lt;p&gt;This pictures from fresh&amp;nbsp;&lt;strong&gt;SDK v15.0.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;for&amp;nbsp;&lt;strong&gt;ble_app_hrs_rscs_relay&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/1220.Capture4.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;with&lt;/em&gt;&amp;nbsp;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;&amp;nbsp;idle_state_handle function&lt;/strong&gt;,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/4278.Capture5.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;without&amp;nbsp;&amp;nbsp;&lt;/em&gt;idle_state_handle function&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for&amp;nbsp;&lt;strong&gt;ble_app_blinky&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/6825.Capture10.PNG" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;with&lt;/em&gt;&amp;nbsp;&amp;nbsp;idle_state_handle function,&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x768/__key/communityserver-discussions-components-files/4/8156.Capture8.PNG" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;without&amp;nbsp;&amp;nbsp;&lt;/em&gt;idle_state_handle function.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you see there is no change in&amp;nbsp;&lt;strong&gt;ble_app_blinky &lt;/strong&gt;but there are changes in&amp;nbsp;&lt;strong&gt;ble_app_hrs_rscs_relay&amp;nbsp;&lt;/strong&gt;example that&amp;#39;s why&amp;nbsp;I thought those spikes are unexpected.&amp;nbsp; Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205582?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110ef47f-0e22-4780-bd4d-63fec9849aaa</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tested the ble_app_hrs_rscs_relay example and measured the current using the PPK and the Power Profiler application in nRFConnect for desktop. All tests were made with the same nRF52832 DK and the same PPK. Here are my results:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_app_hrs_rscs_relay SDK v15.0.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e693cdfcdc8f4368b318734b1045530a/pastedimage1566473645543v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;As you can see, there are no unexpected spikes here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_app_hrs_rscs_relay SDK v14.2.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e693cdfcdc8f4368b318734b1045530a/pastedimage1566473875521v2.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;No unexpected spikes here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_app_hrs_rscs_relay SDK v15.2.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e693cdfcdc8f4368b318734b1045530a/pastedimage1566474737958v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;All three are very similar, with no unexpected spikes.&lt;/p&gt;
&lt;p&gt;Could you please specify which unmodified example you are seeing these spikes in? I would like you to delete your SDK v15.0 and try downloading a &amp;quot;fresh&amp;quot; one from our &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Findex.html&amp;amp;cp=5_5_1"&gt;Infocenter&lt;/a&gt;. Please see if you still experience these unexpected current spikes.&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205482?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 08:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12601aaa-7799-48c7-a09c-a152db90adbf</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;There are misunderstandings because of my wording. Last four pictures are not from my project. They are from&amp;nbsp;SDK 15.0&amp;#39;s and 14.2&amp;#39;s base example(ble_app_hrs_rscs_relay).&amp;nbsp;If I comment out sd_app_wait() function in base example there are no spikes, if I don&amp;#39;t do any changes spikes appear. Then I tried this in ble_app_blinky example without any changes(code still calls sd_app_wait() function) and there were no spikes(I didn&amp;#39;t put here any pictures for it).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I saw that if I download the&amp;nbsp;untouched version of SDK&amp;nbsp;15.0 or&amp;nbsp;&lt;span&gt;SDK&lt;/span&gt; 14.2 ,&amp;nbsp;then run projects&amp;nbsp;&lt;span&gt;ble_app_hrs_rscs_relay and&amp;nbsp;&lt;/span&gt;&lt;span&gt;ble_app_blinky without any changes. Relay example has spikes and blinky example hasn&amp;#39;t. My old project was built on blinky example and new example is built on relay example, that&amp;#39;s why I started to see those spikes. Can you check those examples? If you say those spikes are&amp;nbsp;&lt;/span&gt;unexpected then I can take your advice to fix it, if those are expected then it&amp;#39;s okay for me too. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205451?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 07:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127a9097-4ea2-4d45-a3bc-d8c89500baae</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are a few changes between the SDKs, so there&amp;#39;s just a matter of finding what change is causing these spikes when combined with your project. Could you please upload the SDK15.0 version of your project with instructions on how to recreate this, so I can have a closer look? I can set the case to private if you don&amp;#39;t want to share your project with the rest of the community. This way the case will be treated with confidentiality, and only Nordic engineers will be able to see the case. Just say the word!&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205361?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 14:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cc2b6d7-cdec-4c95-b386-9d004bd9fbae</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;I did some measurements with sdk 14.2, and result are same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is with &lt;span&gt;sd_app_evt_wait() function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/2146.Capture6.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and this one has no&amp;nbsp;sd_app_evt_wait() function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/8015.Capture7.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did same thing for blinky examples in sdk 14.2 and 15.0, and there were no spikes with&amp;nbsp;sd_app_evt_wait() function and without&amp;nbsp;sd_app_evt_wait() function. So I assume those spikes don&amp;#39;t appear because of me. Thank you for your replies.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205316?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 12:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6aff9f2-e886-4797-bcb2-05dd5e3257a4</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;When I comment out&amp;nbsp;&lt;span&gt;stateMachineRun() spikes still appear. In the my last comment last&amp;nbsp;two pictures are from sdk 15.0 &amp;#39;s original example. Same thing happen in there, if I comment out&amp;nbsp;idle_state_handle() function in the original example those spikes are gone. Second and third pictures from sdk 15.0&amp;nbsp;&amp;nbsp;ble_app_hrs_rscs_relay example. There are spikes in the original example too. I will try to run same example on sdk 14.2 and measure current consumption, then I will post here.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205310?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 12:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c295f662-d83a-4269-9ec3-8a9ee29edfec</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for the updated pictures. These spikes are reminiscent of the CPU interrupting the SoftDevice and making it check something. I&amp;#39;m guessing this is the stateMachineRun() function processing data or something. Do the spikes still appear if you comment out stateMachineRun()?&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205206?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 08:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52592d81-1a96-49ee-a7d0-cd5da1c1bedc</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x240/__key/communityserver-discussions-components-files/4/4863.Capture1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This is my app, sorry for the resolution of older one.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x768/__key/communityserver-discussions-components-files/4/5531.Capture4.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This is from&amp;nbsp;ble_app_hrs_rscs_relay example, its both scanning and advertising. I&amp;nbsp;build my app by modifying this example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x768/__key/communityserver-discussions-components-files/4/3554.Capture5.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;TThis what when I&amp;nbsp;comment out&amp;nbsp;&lt;span&gt;sd_app_evt_wait() function, actually it is&amp;nbsp;idle_state_handle() function but it calls sd_app_evt_wait()&amp;nbsp;inside it.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205179?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 06:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fdbc982-33af-4475-9d33-f97adab013bb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for clarifying. Could you try measuring the current of any of our SDK examples that are using sd_app_evt_wait(), in order to see if the spikes appear there as well? Also, are you able to upload some higher resolution screenshots of the top picture (the one with spikes), as I&amp;#39;m not able to see any details on that one.&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205068?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 13:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ef1448d-1e06-4993-9358-4c5b70c37f1f</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  stateMachineRun();
    SEGGER_RTT_printf(0,&amp;quot;?&amp;quot;);
    sd_app_evt_wait();
    SEGGER_RTT_printf(0,&amp;quot;.&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I added this to see&amp;nbsp;&lt;span&gt;sd_app_evt_wait() is reached or not and result is like that&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1024x768/__key/communityserver-discussions-components-files/4/4544.Capture3.PNG" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Red areas happen when 2.4 seconds completed, so program is running as expected. Also&amp;nbsp;&lt;span&gt;sd_app_evt_wait() is working, it decreases current consumption 12 mAh to 6 mAh, only those spikes appear.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/205018?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 12:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de94a142-a837-41e8-995a-7b7c7f9c7dc5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Have you tried stepping through your code when debugging in order to see what exactly happens here? You should set a breakpoint just before stateMachineRun() and make sure sd_app_evt_wait() ever gets there, and what happens after. I have a suspicion, that either sd_app_evt_wait() is never reached, or that sd_app_evt_wait() doesn&amp;#39;t last very long, as it really just waits for an event as well.&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/204990?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 10:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09e98a7-9606-4a05-86bc-01e2d0c23883</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;I am using SoftDevice in the application.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;stateMachineRun() runs some tasks in order. It mostly runs task that scans for 2.4 seconds, then stops scanning, processes scan results, starts scanning again , starts advertising to advertise processed data(at the time which is not in scan window). It calls a bool function and that function always returns false until 2.4 seconds completed. I couldn&amp;#39;t&amp;nbsp;explain well, I hope you can understand me. Can calling a function&amp;nbsp;&lt;/span&gt;continuously cause this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/204959?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 08:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d82b0f-1845-4e0c-bdc5-a6da65c698af</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Ok, thank you for clarifying!&lt;/p&gt;
&lt;p&gt;What does the stateMachineRun() function do? If you&amp;#39;re just scanning/advertising, I guess the radio is still active in your application. Also, do you use the SoftDevice in this application? If not, sd_app_evt_wait() and other sd function won&amp;#39;t work, which might be why you&amp;#39;re seeing these spikes.&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: Current consumption</title><link>https://devzone.nordicsemi.com/thread/204952?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 08:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960658cd-5ad5-4f6e-955b-9c938cadc34f</guid><dc:creator>kb2423</dc:creator><description>&lt;p&gt;Hi, thank you for the reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No, those projects are totally different, sorry for misrepresentation. I talked about project on sdk 14.2 because when I use&amp;nbsp;&lt;span&gt;sd_app_evt_wait&amp;nbsp;function there were no spikes. Now I am using same function in totally different project on sdk 15.0 and that spikes happened. Those two pictures from project on sdk 15.0, if I dont use&amp;nbsp;sd_app_evt_wait() --&amp;gt; no spikes, if I use&amp;nbsp;sd_app_evt_wait() --&amp;gt; spikes.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also I tried this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; __WFE();&lt;br /&gt; __SEV();&lt;br /&gt; __WFE();&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Like this it has spikes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; __WFE();&lt;br /&gt; __SEV();&lt;br /&gt;//__WFE();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I comment out last __WFE(); it doesnt have spikes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is my for in the main.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for (;;) 
  {
    if (isWorkingIntervalFunc() == true &amp;amp;&amp;amp; oneShotFlag1 == false) {
      goToWorkingState();
      oneShotFlag1 = true;
      oneShotFlag2 = false;
    } else if (isWorkingIntervalFunc() == false &amp;amp;&amp;amp; oneShotFlag2 == false) {
      oneShotFlag1 = false;
      oneShotFlag2 = true;
      goToSleepState();

    } else {
    }
    stateMachineRun();

    sd_app_evt_wait();
  }&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I dont know which peripheral is still running. I dont use uart, gpio, or others. I only do scannning and advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption</title><link>https://devzone.nordicsemi.com/thread/204771?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 12:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad7e5e74-b118-48c0-bbcc-8a9758902252</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is this on a project you&amp;#39;ve migrated from the SDK v.14.2 to v.15.0? In that case, you should check out the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fmigration.html&amp;amp;cp=5_5_1_1_9"&gt;migration guide&lt;/a&gt; to see that you did all of the required steps. It seems your device is not going to sleep properly, so you probably have some peripherals still running. Can you show me a snippet of your code on how you go to sleep/uninitialize your peripherals? Also, please keep in mind that you should refer to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcomp_matrix_nrf52832%2FCOMP%2Fnrf52832%2Fic_rev_sdk_sd_comp_matrix.html"&gt;compatibility matrix&lt;/a&gt;, to see that you use the correct SDK and Softdevice versions with the correct chip.&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>