<?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 power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103331/high-power-comsumption-with-nfc-while-device-is-on-the-antenna</link><description>I have an nrf7002Dk board. 
 I initialized nrf with a text hello world flag using nfc_t2t_* methods. 
 While idle, the power consumption is arround 8 &amp;#181;A. 
 When a phone (android phone) is putted on the nfc antenna, I receive NFC_T2T_EVENT_FIELD_ON event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Sep 2023 11:22:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103331/high-power-comsumption-with-nfc-while-device-is-on-the-antenna" /><item><title>RE: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/445121?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 11:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dfadb1e-8ccd-4df0-a504-873fbb329d0e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;So after a bit of digging on my end, I think the current consumption you&amp;#39;re seeing is the current draw from the NFCT peripheral in the ACTIVATED state. I am currently waiting for an answer from the developers for a confirmation on whether this is the case or not though.&lt;/p&gt;
&lt;p&gt;My colleague Stian explains this in detail (for the nRF52832) in&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87403/current-draw-when-nfct-is-active"&gt; this case&lt;/a&gt;. The current we&amp;#39;re seeing on the nRF5340 is much lower, but I believe this is due to fixes and improvements to the peripheral as a whole.&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: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/444653?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 08:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:949be079-0648-4096-9d81-95c04864ba9e</guid><dc:creator>Seb-labs</dc:creator><description>&lt;p&gt;Tried with this device tree overlay :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi1 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi2 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi3 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi4 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;qspi {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;i2c1 {
    status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;i2c0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;nrf700x {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;nrf_radio_coex {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;gpio_fwd {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;led1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;button0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;button1 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;led0 {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;ficr {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;usbd {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;wdt {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;gpio_fwd {
    uart {
        status = &amp;quot;disabled&amp;quot;;
    };
};

&amp;amp;pwm0 {
    status = &amp;quot;disabled&amp;quot;;
};

&lt;/pre&gt;&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/pastedimage1693988139337v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Same result:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/444624?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 06:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d14eeb7-fce9-46f1-9324-be74fd120283</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;d suggest checking the device tree of this project. By default, the record_text app enables multiple peripherals that could be the culprit for this extra current consumption.&amp;nbsp;&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/pastedimage1693982690660v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The DeviceTree extension in VS code lets you see what peripherals are enabled, so you can try disabling all peripherals not in use to see if that helps on your end. If that doesn&amp;#39;t help I&amp;#39;ll need to ask the devs internally what this extra current could be.&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: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/444355?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 14:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7a6650d-0d8d-4135-a614-198151c71a9e</guid><dc:creator>Seb-labs</dc:creator><description>&lt;p&gt;Steps to produce:&lt;/p&gt;
&lt;p&gt;1/ take nrf/samples/record_text app (sdk-nrf)&lt;/p&gt;
&lt;p&gt;2/ disable uart0 in overlay&lt;/p&gt;
&lt;p&gt;3/ patch main.c:&lt;/p&gt;
&lt;p&gt;index ff4d5f2e9..b2678ce80 100644&lt;br /&gt;--- a/samples/nfc/record_text/src/main.c&lt;br /&gt;+++ b/samples/nfc/record_text/src/main.c&lt;br /&gt;@@ -40,6 +40,11 @@ static const uint8_t pl_code[] = {&amp;#39;P&amp;#39;, &amp;#39;L&amp;#39;};&lt;br /&gt;&amp;nbsp;/* Buffer used to hold an NFC NDEF message. */&lt;br /&gt;&amp;nbsp;static uint8_t ndef_msg_buf[NDEF_MSG_BUF_SIZE];&lt;br /&gt;&lt;br /&gt;+static void stop_nfc_handler(struct k_work *work) {&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfc_t2t_emulation_stop();&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfc_t2t_done();&lt;br /&gt;+}&lt;br /&gt;+static K_WORK_DELAYABLE_DEFINE(stop_nfc, stop_nfc_handler);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;static void nfc_callback(void *context,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfc_t2t_event_t event,&lt;br /&gt;@@ -57,6 +62,9 @@ static void nfc_callback(void *context,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case NFC_T2T_EVENT_FIELD_OFF:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dk_set_led_off(NFC_FIELD_LED);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case NFC_T2T_EVENT_DATA_READ:&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k_work_schedule(&amp;amp;stop_nfc, K_MSEC(100));&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Result:&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/pastedimage1693835939408v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/444288?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 10:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf5530e-3f03-4f7c-aef1-729e7fa6a547</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, I didn&amp;#39;t catch that you were calling the &lt;strong&gt;nfc_t2t_done&lt;/strong&gt;() function already. But okay, then something else must still be running on your side. Since the&amp;nbsp;nfc_t2t_done() uninits the NFC peripheral, maybe the NFC initializes some other peripheral on your end. Like a serial function, or the application is handling the incoming data somehow. There must be a thread still running causing this extra current consumption, but without seeing your code/project it&amp;#39;s hard to see what&amp;#39;s happening exactly and what the current could be.&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: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/444076?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 11:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4afc4fa9-73aa-4f48-9313-38e4a3cb4156</guid><dc:creator>Seb-labs</dc:creator><description>&lt;p&gt;As I said, if I call &lt;strong&gt;nfc_t2t_done&lt;/strong&gt;() before FIELD_OFF, the consumption go to 80 &amp;micro;A and stay at this value even if the phone is removed from the antenna.&lt;/p&gt;
&lt;p&gt;I would like to retrieve the original 8 &amp;micro;A consumption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power comsumption with nfc while device is on the antenna</title><link>https://devzone.nordicsemi.com/thread/444074?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 11:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120b58a8-1ae5-4147-b5c8-e1ca2eabf352</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Since the NFC_T2T_EVENT_FIELD_ON means that the &amp;quot;NFC tag has detected an external NFC field and was selected by an NFC polling device&amp;quot; I think it keeps the CPU on the nRF5340 running/awake so it can transmit/receive data, and the NFC peripheral won&amp;#39;t release the CPU until an&lt;strong&gt;NFC_T2T_EVENT_FIELD_OFF&lt;/strong&gt; or&amp;nbsp;&lt;strong&gt;NFC_T2T_EVENT_STOPPED&lt;/strong&gt; has been called. I think you can call&amp;nbsp;&lt;strong&gt;nfc_t2t_done()&lt;/strong&gt; to stop the NFC peripheral when you&amp;#39;re done receiving from the NFC reader instead of waiting for the FIELD_OFF event when it&amp;#39;s removed.&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>