<?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>1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12402/1ma-active-mode-troubleshooting</link><description>Hi, 
 We have a rev3 nrf51822 system running S110 v7.3 and using SDK6.1.0. We are having trouble tracking down a ~1mA baseline current consumption when in system on/low power mode. Going to System Off mode reduces current to ~12uA. We can see with a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Mar 2016 16:25:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12402/1ma-active-mode-troubleshooting" /><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46900?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee043e1-7131-43e5-92e2-8cf2313cd1ef</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I would recommend to migrate to a newer SDK, but understand that this may be too much work. I don&amp;#39;t know of any critical issues with this SDK + SD, other than that the PWM have a high probability of inverting when used with SD. This was fixed in SDK 10.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46898?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7446b66f-aa8b-4990-8d04-20b830c913bd</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;app_gpiote and app_button should only use gpiote PORT event. You can check the NRF_GPIOTE-&amp;gt;CONFIG[n] register field MODE to see if gpiote IN event is used. For sharing the code confidentially with Nordic Support you can make a new case on &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;MyPage&lt;/a&gt;. Mark the case with my name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46899?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ea7750-bab5-4352-9cb7-05b7b02bf3c4</guid><dc:creator>loren</dc:creator><description>&lt;p&gt;Also, is there any chance that we&amp;#39;re running into issues as a result of this set of versions (S110 7.3, SDK 6.1.0)? We chose these initially because it seemed like the best choice to support Rev2 and Rev3 chips, but at this point we have no requrirement for Rev2 support. However, moving to a newer S110 and SDK appears to require some substantial work, so we&amp;#39;re hesitant to do that unless there are known issues we might be resolving related to this problem.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;loren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46897?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa03a6a1-246c-48ba-8d90-786d431a34d9</guid><dc:creator>loren</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I think that we are only using the GPIOTE PORT -- but we are just using the app_button and app_gpiote so it&amp;#39;s possible that they are misconfigured somehow. Are there registers we can read to confirm that the gpiote IN is not in use?&lt;/p&gt;
&lt;p&gt;If there a way that we can confidentially share the code with you that would be helpful.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;loren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46896?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29aec375-8972-44ba-a3bf-fb3bab81d503</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Are you using gpiote IN event? This will request the HFCLK. There is no way to know what is using the HFCLK programmatically. Would it be possible to upload code so that I can reproduce it on a nRF51 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46895?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 14:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba4c9c76-cea1-4333-9ebb-c896c49dc022</guid><dc:creator>loren</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;We are using
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_100_PPM, true);&lt;/p&gt;
&lt;p&gt;The hardware is custom, but the chip is rev 3 and we see the problem on both QFAA and QFAC parts.&lt;/p&gt;
&lt;p&gt;We are disabling PWM when not in use, but because of the known issue with PWM we also went to the trouble of completely removing from the build, and still see the problem. It would really be nice if there was some way to programatically determine what is using the HFCLK resource.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46894?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 14:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97ac2bf-d71d-42ae-b869-919dc8751cf7</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I guess you are disabling the pwm or else this would keep the timer running (which requires HFCLK). What clock source are you using in SOFTDEVICE_HANDLER_INIT()? What hardware are you running (PCA...)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46893?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 14:11:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c28c6441-57db-46a5-909e-78381729bbae</guid><dc:creator>loren</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;Thanks for your quick response. We are using:&lt;/p&gt;
&lt;p&gt;TWI, but we stop it (NRF_TWI1-&amp;gt;ENABLE = 0;) after use.
GPIOTE for app_button and waking up the system;
ADC for infrequent periodic measurements, but we stop (NRF_ADC-&amp;gt;TASKS_STOP = 1;) after each measurement
PWM using nrf_pwm.c with the PAN73 workaround described &lt;a href="https://devzone.nordicsemi.com/question/42246/high-background-current-after-disabling-pwm-in-softdevice/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We have also tried removing each of these from our firmware but still see the baseline.&lt;/p&gt;
&lt;p&gt;We are also using:
app_timer
app_button
app_fifo
app_gpiote
app_scheduler&lt;/p&gt;
&lt;p&gt;loren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46892?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 09:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef71361e-3e2e-467a-9e7a-7867afb48df4</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Sounds like something is requiring the HFCLK, you can see which resources need it in the &amp;quot;block resource requirements&amp;quot; table in the Product Specification, part 8.3.&lt;/p&gt;
&lt;p&gt;Task registers like NRF_POWER-&amp;gt;TASK_LOWPWR are only used to set a task, so the register will be cleared after. Therefore there is no use in reading it. You can try with &lt;code&gt;NRF_POWER-&amp;gt;TASK_LOWPWR = 1&lt;/code&gt; and see if the current consumption decreases.&lt;/p&gt;
&lt;p&gt;What SDK peripherals are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 1mA active mode troubleshooting</title><link>https://devzone.nordicsemi.com/thread/46891?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 08:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:528c9608-855e-4fce-959a-ff0e2a8f9557</guid><dc:creator>loren</dc:creator><description>&lt;p&gt;Also, we notice that the current in the system does drop down into the ~uA range every 1.4 seconds, for about 10ms. This time doesn&amp;#39;t obviously correspond to anything in our firmware -- could this be something in the SD, or a clue to what&amp;#39;s going on with our 1mA baseline?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>