<?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>nrf52 enabling gpio on nfc pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35505/nrf52-enabling-gpio-on-nfc-pins</link><description>Hi 
 I have developed a PCB that will be used to control some sensors. The pins NFC1 and NFC2 are intended to be used as GPIOs. However, the default processor settings configure these pins as &amp;quot;NFC-pins&amp;quot;. How can I change that? I couldn&amp;#39;t figure it out</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Mar 2025 17:34:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35505/nrf52-enabling-gpio-on-nfc-pins" /><item><title>RE: nrf52 enabling gpio on nfc pins</title><link>https://devzone.nordicsemi.com/thread/529602?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 17:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75018f2-5d11-47d5-ac7f-fda6a99e2fcf</guid><dc:creator>cjh39</dc:creator><description>&lt;p&gt;The link above does not work anymore..&lt;/p&gt;
&lt;p&gt;Im using a nrf52840 , Segger with the nrf SDK.&lt;/p&gt;
&lt;p&gt;How do I use the NFC pins as GPIO ? There must be a simple solution to this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ive added #define CONFIG_NFCT_PINS_AS_GPIOS 1 to the sdk_config.h and also I added the CONFIG_NFCT_PINS_AS_GPIOS here&lt;/p&gt;
&lt;p&gt;&lt;img style="cursor:zoom-in;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4762.pastedimage1743097718776v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I check the nrfjprog --memrd 0x10001000 --n 512, Im getting all F&amp;#39;s&lt;/p&gt;
&lt;p&gt;&lt;img style="cursor:zoom-in;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0552.pastedimage1743097773703v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 enabling gpio on nfc pins</title><link>https://devzone.nordicsemi.com/thread/152383?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 14:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f22b4da9-ebd5-4b3a-a796-5777fd235b1f</guid><dc:creator>Berker</dc:creator><description>&lt;p&gt;Thanks for this good response...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 enabling gpio on nfc pins</title><link>https://devzone.nordicsemi.com/thread/136493?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 08:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dcb09dc-75d6-4cf8-add7-b7d9ae5ff20e</guid><dc:creator>felixgattiker@xrite.com</dc:creator><description>&lt;p&gt;...cool, it works! Thanks for the quick help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 enabling gpio on nfc pins</title><link>https://devzone.nordicsemi.com/thread/136488?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 07:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c87514-c792-4656-b716-1ef3efa02119</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is done by setting&amp;nbsp;the&amp;nbsp;&lt;a title="  NFCPINS  " href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uicr.html?cp=2_1_0_13_0_62#register.NFCPINS"&gt;NFCPINS&lt;/a&gt; register (note that the UICR is flash, so the NVMC is used to write to this area!). If you add the preprocessor define &amp;quot;CONFIG_NFCT_PINS_AS_GPIOS&amp;quot; (add under project settings -&amp;gt; &amp;quot;Preprocessor&amp;quot; -&amp;gt; &amp;quot;Preprocessor definitions&amp;quot;),&amp;nbsp;you should be able to use these NFC pins as normal GPIOs. This code snippet is shown in the system_nrf52.c file.&lt;/p&gt;
&lt;p&gt;If using the nRF52-DK, you&amp;#39;ll need to place resistors mounted on R25/R26 to R27/R28, as explained here:&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/hw_nfc.html?cp=2_1_4_5_10"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/hw_nfc.html?cp=2_1_4_5_10&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>