<?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>High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100967/high-current-comsumption-when-gpio-and-ble-enabled-on-nrf5340-dk</link><description>I am testing on nRF5340-DK(0.11.0) with nrf connect sdk(v2.4.0). 
 And Measuring current consumption . 
 When I added GPIO (button) to the scan_adv sample, High current consumption. 
 What is the problem? 
 modified scan_adv sample 
 
 
 
 GPIO disabled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jul 2023 22:46:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100967/high-current-comsumption-when-gpio-and-ble-enabled-on-nrf5340-dk" /><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/434314?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 22:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b189fc63-8dba-4047-bb8d-d955cebd931e</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;OK.Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/434118?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 08:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ed2604-aadb-4a0d-8d24-a7cbb5bdd2c0</guid><dc:creator>Kenneth</dc:creator><description>[quote user="loquat"]Why does the nRF5340-DK consume more current when using the GOIOTE IN event?[/quote]
&lt;p&gt;The nRF5340 support two modes of GPIO IN event:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpiote.html#register.LATENCY"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpiote.html#register.LATENCY&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The LowLatency require higher power than LowPower setting. Unfortunately it&amp;#39;s not possible to use LowPower setting due to this errata:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF5340_Rev1/ERR/nRF5340/Rev1/latest/anomaly_340_153.html#anomaly_340_153"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF5340_Rev1/ERR/nRF5340/Rev1/latest/anomaly_340_153.html#anomaly_340_153&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So this means you must instead use the pin sense mechanism for low power on the nRF5340:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpio.html#unique_1968262651"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpio.html#unique_1968262651&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/434044?ContentTypeID=1</link><pubDate>Sat, 01 Jul 2023 05:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d297459e-49b6-47b6-8f9d-e38d3f06c672</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;The state seems to have changed on its own.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz"&gt;&lt;span class="ryNqvb"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Please give me an answer.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/432144?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 23:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a8418ab-9b28-4063-a0bd-fba56eba1040</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;When I tried it, the current consumption decreased.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But I have a question.&lt;br /&gt;I did the same test with the &amp;quot;nRF52833-DK&amp;quot;.&lt;br /&gt;The result was 5.66mA average with or without the sense-edge-mask.&lt;/p&gt;
&lt;p&gt;Why does the nRF5340-DK consume more current when using the GOIOTE IN event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/431930?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 09:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a9d4c74-c498-4ed8-9858-5ee65b1709a8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Make an overlay file with the following content:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;sense-edge-mask&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0xFFFFFFFF&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;sense-edge-mask&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0xFFFFFFFF&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Then the gpios will use the PORT event to wakeup instead of the IN event, the current is reduced that way.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/431806?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 14:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf32997-7ca5-4b68-ba86-2060fe86a915</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;My test project&lt;/p&gt;
&lt;p&gt;how to build and flash&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;cd scan_adv&lt;br /&gt;mkdir build&lt;br /&gt;cd build&lt;br /&gt;cmake -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp ..&lt;br /&gt;ninja&lt;br /&gt;west flash --recover&lt;br /&gt;-----------------------------------------------------------&lt;/p&gt;
&lt;p&gt;modify main.c line 51&lt;br /&gt;#if 0&amp;nbsp; -&amp;gt;&amp;nbsp; disable GPIO&lt;br /&gt;#if 1&amp;nbsp; -&amp;gt; enable GPIO&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2553.scan_5F00_adv.zip"&gt;devzone.nordicsemi.com/.../2553.scan_5F00_adv.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current comsumption when GPIO and BLE enabled on nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/431758?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 11:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:497cb9ba-ffe0-4d5e-b973-c80bb7ac5884</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Maybe you can share a project that we can compile in v2.4 where we just comment in and out the lines you want us to comment on?&lt;/p&gt;
&lt;p&gt;Do you power cycle the board before measuring? Have you read:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs"&gt;Optimizing Power on nRF5340 SoC Designs&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>