<?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>nRF52832 current consumption in idle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104426/nrf52832-current-consumption-in-idle</link><description>This is my environment 
 
 IDE: VSC 
 SDK: NCS v2.2.0 
 nRF52832 on nRF52-DK 
 I&amp;#39;ve cut the SB9 link on the DK so I can measure the current only going to the nRF52832 IC, and am measuring the current using my CurrentRanger 
 
 This is what I am trying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Oct 2023 12:13:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104426/nrf52832-current-consumption-in-idle" /><item><title>RE: nRF52832 current consumption in idle</title><link>https://devzone.nordicsemi.com/thread/450288?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 12:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4e6ce12-9d80-4a64-a342-0f973d3ff126</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;
&lt;p&gt;Thanks for the explanation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can not see anything wrong in the code. Can you add the following configurations kconfig file and see if it works?&lt;/p&gt;
&lt;p&gt;CONFIG_CONSOLE=y&lt;br /&gt;CONFIG_UART_CONSOLE=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 current consumption in idle</title><link>https://devzone.nordicsemi.com/thread/449243?ContentTypeID=1</link><pubDate>Sat, 07 Oct 2023 01:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e55466af-5722-43ff-9768-08b8b9e8cb44</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Looks like you were right!&lt;/p&gt;
&lt;p&gt;Changed my configuration for the LEDs to the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret = gpio_pin_configure_dt(&amp;amp;led1, GPIO_OUTPUT | \
				 GPIO_OUTPUT_INIT_LOW |	\
				 GPIO_OUTPUT_INIT_LOGICAL | \
				 GPIO_OPEN_DRAIN);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And I&amp;#39;m now seeing the sort of current in idle mode that I was expecting (well, as far as I can tell from my CurrentRanger - the current is jumping around a bit).&amp;nbsp; I might invest in a PPK 2 to get a better handle on what&amp;#39;s truly going on.&lt;/p&gt;
&lt;p&gt;The gpio_pin_set_dt(&amp;amp;led0,0) code is there just there to turn the LEDs off at the start of my code.&amp;nbsp; I then toggle them in my button press callback.&amp;nbsp; As I understand it, I&amp;#39;m using three different LEDs in my code - led0, led1 and led2.&amp;nbsp; Am I missing something?&lt;/p&gt;
&lt;p&gt;Still can&amp;#39;t work out why the&amp;nbsp;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Button x pressed&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;) messages aren&amp;#39;t getting printed to the terminal in my callback though.&amp;nbsp; Are you able to see what I&amp;#39;m doing wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mike&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 current consumption in idle</title><link>https://devzone.nordicsemi.com/thread/449194?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 13:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3703798f-7333-426f-b37a-bad23752caa9</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;200uA sounds like the current flowing through our internal pull resistors if the state of the pin is opposite of the pull config (e.g. pullup + pin set to low).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Can I look at your set up how you measured the current using CurrentRanger?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please explain this part of the code&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696600147080v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Did you mean to use same pin for 3 leds?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>