<?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>GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52945/gpiote-consuming-high-current-after-first-press-of-a-button</link><description>I used the example pin_change_int from peripheral examples and commented the OUT pins. In addition I added the sleep commands to the main while loop. This is the code: 
 
 
 When I power profile it right after turning the device on, I get a nice expected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Nov 2019 08:18:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52945/gpiote-consuming-high-current-after-first-press-of-a-button" /><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/217891?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 08:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4426ccd8-7232-4a53-abff-5d58b41da379</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry about the delay. If you want your device to go to sleep you can see how we do this in the examples in the SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/216036?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 02:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fd40f73-94fc-4b40-87d7-bf2c0933c9cd</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;Did you have a chance to look at this Joakim????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/215157?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 18:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c71c3a91-1bca-480a-a5e5-af5de77785ac</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;Any news? The device does not seem to sleep after button press. This is why current is high I believe. What am I missing to get this device to sleep?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/214687?ContentTypeID=1</link><pubDate>Sun, 13 Oct 2019 05:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc019452-4cc4-4318-9ba5-165d67d8c4ce</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;it is clear that the device is not going back to sleep after woken up by the first button press. What should I do to make it go back to sleep on every press???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/214685?ContentTypeID=1</link><pubDate>Sun, 13 Oct 2019 01:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a109fc3-5f6b-40bf-aa16-74a6ebe317ef</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;I just tested putting an external press button with a 10K resistor and removed the line :&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;in_config.pull = NRF_GPIO_PIN_PULLUP;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;same thing. No matter what is done, on first press current goes high and stays high. I also tried to disable the pin and enable back on the in_pin_handler function. Nothing. Then, I tried to for the press button pin low in case it was sitting high for some reason. Nothing.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/214446?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 15:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c153bcb-ceda-44c7-a1a8-69fee6e51ef3</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;I tried with all of the SDKs current and old available on the website. Same problem on all.&lt;br /&gt;To summarize:&lt;br /&gt;- After first press, consumption goes high as seen above. Won&amp;#39;t go down anymore&lt;/p&gt;
&lt;p&gt;- When debugging, notice that the in_pin_handler is called twice on every button press&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/214418?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 14:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a20b5c4-23f1-4e7d-a5f1-0b58941efc63</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Thanks for the information.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll test this and try reproducing it on my side. Are you using the latest nRF5 SDK (currently v.15.3.0)?&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim Jakobsen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/214232?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 22:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c78c06-e32b-4a6e-99e1-f6ee4bdefb27</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;Any news?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/214019?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 22:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d48c680-db8b-49e1-bde4-078fb5514c59</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;btw, I tested 2 different DKs with the same results. At one rare point, it actually temporarily spiked up the current when I pressed the button and went back to the original state. But that only happened like twice. The rest of the time, no matter how many times I restarted the DK it would spike up on the first button press. And then stays at 200+uA from there&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/213914?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 12:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcbf7dc9-b7dc-4b13-b39e-fcd87cde427d</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;Single fast button press and release. DK: PCA10056 1.1.0 2019.19 683309915&amp;nbsp; nrf52840&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/213875?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 11:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa0977ca-ea4e-4fbd-a44f-659d1fa27e4a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you tell me which DK you are working with, so that I can test this myself?&lt;/p&gt;
&lt;p&gt;Also; are you seeing the high current consumption on a single button press (press and release) or are you holding the button down?&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim Jakobsen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/213774?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 02:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb1ab05-a203-4d79-9a78-ecc2b46237eb</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;I dug a bit further and found ran the debugger. Found out that the in_pin_handler is being called twice on every key press. I wonder if this is causing high consumption. Why would the code above call in_pin_handler twice on the same button press?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE consuming high current after first press of a button</title><link>https://devzone.nordicsemi.com/thread/213769?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 01:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96541d2-2e60-4e74-b3bd-c02f03735f1f</guid><dc:creator>Fabio</dc:creator><description>&lt;p&gt;could it be that&lt;/p&gt;
&lt;pre&gt; in_config.pull = NRF_GPIO_PIN_PULLUP;&lt;br /&gt;&lt;br /&gt;on the code is not working? therefore the pin is floating?&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>