<?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>Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125835/issue-using-nfc-pins-p0-02-p0-03-as-i2c-slave-on-nrf5340</link><description>Hello Nordic Support Team, 
 I’m working with an nRF5340 using nRF Connect SDK 3.0.2. 
 I am trying to use the NFC pins (P0.02 and P0.03) as an I2C slave interface. However, when I use these pins, the I2C master never receives a valid NACK from my slave</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Nov 2025 07:51:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125835/issue-using-nfc-pins-p0-02-p0-03-as-i2c-slave-on-nrf5340" /><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555692?ContentTypeID=1</link><pubDate>Fri, 28 Nov 2025 07:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b8da23-8a73-4523-8ec0-57fb79030428</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;So you were able to use the NFC pins now after you switched to new&amp;nbsp;board, or is it still the same board? If you suspect the driver, you may consider reading out the TWIS PSEL registers and GPIO CFG registers to confirm the pins are configured correctly and according to the product specification. You can also add logging for the TWIS error events in the TWIS callback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555540?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 15:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8cc5140-5c4b-4f17-aa12-89118e6010da</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p class="ds-markdown-paragraph"&gt;&lt;span&gt;During testing, I observed the following:&lt;/span&gt;&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;strong&gt;&lt;span&gt;Successful Configuration:&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;The nRF5340 operates correctly as an I2C master when using P0.03 for SDA and P0.02 for SCL on my new board design.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;strong&gt;&lt;span&gt;Failed Configuration:&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;On an older board, a previously working configuration (SDA on P0.03, SCL on P0.30) fails when the pins are swapped in the device tree:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;strong&gt;&lt;span&gt;Working:&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;psels = &amp;lt;NRF_PSEL(TWIS_SDA, 0, 3)&amp;gt;, &amp;lt;NRF_PSEL(TWIS_SCL, 0, 30)&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;strong&gt;&lt;span&gt;Failing:&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;psels = &amp;lt;NRF_PSEL(TWIS_SDA, 0, 30)&amp;gt;, &amp;lt;NRF_PSEL(TWIS_SCL, 0, 3)&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;span&gt;The issue suggests a problem on I2C slave driver.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555520?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 13:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e4d8b5-4ef4-4b32-a5a4-012089b63ee3</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p&gt;Thank you for your response, Vidar.&lt;/p&gt;
&lt;p&gt;Yes, I can confirm that I&amp;#39;m able to successfully toggle the pins between high and low states using the debug code I developed.&lt;/p&gt;
&lt;p&gt;I can also verify that the signals are transmitting correctly. When using the same I2C bus with another slave device (my other custom board that uses P0.30 for SCL), the communication works properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555518?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 13:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaedf897-0b08-4cad-9a0f-b6e707d01a68</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. The reason I asked what board you were using was because of on the DK the the NFC pins are not routed to the pin headers by default. In the DT overlay you can omit the drive strength setting (&amp;#39;E&amp;#39; drive is not available either) as Turbo said, but you need to keep the bias pull up property if you want to enable the internal pull ups.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you confirmed that you are able to drive these pins on your board? For example, by measuring if the pull-up is applied or by using a logic analyser?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555511?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 12:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ee6ea3-bcbf-4b88-8756-1782ba7cbeb3</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p&gt;Thank you for your support, Turbo J.&lt;/p&gt;
&lt;p&gt;Even though I&amp;#39;m using the following configuration:&lt;/p&gt;
&lt;p&gt;```dts&lt;br /&gt;i2c2_default: i2c2_default {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(TWIS_SDA, 0, 3)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(TWIS_SCL, 0, 2)&amp;gt;;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;i2c2_sleep: i2c2_sleep {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(TWIS_SDA, 0, 3)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(TWIS_SCL, 0, 2)&amp;gt;;&lt;br /&gt; low-power-enable;&lt;br /&gt; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;span&gt;I&amp;#39;m still experiencing the same behavior.&lt;/span&gt;&lt;/p&gt;
&lt;div class="md-code-block md-code-block-dark"&gt;
&lt;div class="md-code-block-banner-wrap"&gt;
&lt;div class="md-code-block-banner md-code-block-banner-lite"&gt;
&lt;div class="_121d384"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555506?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 12:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74abae2b-07f1-4202-be69-4f9df7087b18</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;P0.03 does not support E drive modes AFAIK. Its also wrong to use a mode that actively drives &amp;quot;high&amp;quot; level with I&amp;sup2;C bus lines - that is what the pullup resistors are there for.&lt;/p&gt;
&lt;p&gt;Try omitting the &amp;quot;nordic,drive-mode&amp;quot; line or set it to &amp;quot;H0D1&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555505?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 12:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c01267-1cb0-4a49-a90f-7abd1c6e7180</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p&gt;Thank you for your response, Vidar.&lt;/p&gt;
&lt;p&gt;While I don&amp;#39;t have an nRF5340DK available for testing with this specific pin configuration, I can confirm that my I2C slave implementation works correctly on a custom board using the following configuration:&lt;/p&gt;
&lt;p&gt;```dts&lt;br /&gt;i2c2_default: i2c2_default {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(TWIS_SDA, 0, 3)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(TWIS_SCL, 0, 30)&amp;gt;;&lt;br /&gt; bias-pull-up;&lt;br /&gt; nordic,drive-mode = &amp;lt;NRF_DRIVE_E0E1&amp;gt;;&lt;br /&gt; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;span&gt;The only modification from my working custom board design is changing the SCL pin to P0.02.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;span&gt;In my&amp;nbsp;&lt;/span&gt;&lt;code&gt;zephyr.dts&lt;/code&gt;&lt;span&gt;&amp;nbsp;file, I currently have:&lt;/span&gt;&lt;/p&gt;
&lt;div class="md-code-block md-code-block-dark"&gt;
&lt;div class="md-code-block-banner-wrap"&gt;
&lt;div class="md-code-block-banner md-code-block-banner-lite"&gt;
&lt;div class="_121d384"&gt;uicr: uicr@ff8000 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-uicr&amp;quot;;&lt;br /&gt; reg = &amp;lt;0xff8000 0x1000&amp;gt;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; nfct-pins-as-gpios;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class="_121d384"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3618.zephyr.dts"&gt;devzone.nordicsemi.com/.../3618.zephyr.dts&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p class="ds-markdown-paragraph"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Using NFC Pins (P0.02/P0.03) as I2C Slave on nRF5340</title><link>https://devzone.nordicsemi.com/thread/555500?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 12:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f5dae2-a258-4ba5-9bbc-929743b65330</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see you have correctly included the uicr node with the&amp;nbsp;nfct-pins-as-gpios; property in your overlay, so provided the overlay is being applied to the build, I would have expected this to work (you can verify that it&amp;#39;s applied by looking at the generated zephyr.dts). Are you testing this on a custom board or the nRF5340 DK?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>