<?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>selecting NFC pins (0.9 and 0.10)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101184/selecting-nfc-pins-0-9-and-0-10</link><description>So i have a custom nrf52840 board that i&amp;#39;m working on with SDK 15.2 
 I want to use the NFC as GPIO. 
 According to the docs i need to set in the sdk_config.h CONFIG_NFCT_PINS_AS_GPIOS. 
 It didn&amp;#39;t work. i was sure i was doing something wrong so i investigated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Mar 2025 16:34:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101184/selecting-nfc-pins-0-9-and-0-10" /><item><title>RE: selecting NFC pins (0.9 and 0.10)</title><link>https://devzone.nordicsemi.com/thread/529593?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 16:34:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796a12e0-af3a-4ef9-9319-1206b390df01</guid><dc:creator>cjh39</dc:creator><description>&lt;p&gt;Ive tried this and it does not work. How do I set this in Segger so I can use the NFC pins as GPIO / SPI.. &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/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/pastedimage1743097773703v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How do we turn them off in Segger using the nrf SDK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: selecting NFC pins (0.9 and 0.10)</title><link>https://devzone.nordicsemi.com/thread/432962?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 12:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f8aba4c-37a4-49e0-91e0-18413a786932</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you post a link to the documentation where it states that&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS should be set in sdk_config.h?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The references I can find to this config is in the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_nfc_if.html?resultof=%22%43%4f%4e%46%49%47%5f%4e%46%43%54%5f%50%49%4e%53%5f%41%53%5f%47%50%49%4f%53%22%20"&gt;nRF52840 DK (and other DKs) user-guide&lt;/a&gt;, where it says:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a title="A standards-based short-range wireless connectivity technology that enables two electronic devices to establish communication by bringing them close to each other." href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/dita_common/glossary/glossary.html#nfc"&gt;&lt;dfn&gt;NFC&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;can be disabled and GPIOs enabled by defining the&amp;nbsp;CONFIG_NFCT_PINS_AS_GPIOS&amp;nbsp;variable in the &lt;strong&gt;project settings&lt;/strong&gt;. The way of doing this depends on the&amp;nbsp;&lt;/span&gt;&lt;a title="A software application that provides facilities for software development." href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/dita_common/glossary/glossary.html#ide"&gt;&lt;dfn&gt;Integrated Development Environment (IDE)&lt;/dfn&gt;&lt;/a&gt;/toolchain in use:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When using SEGGER Embedded Studio, select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;span&gt;Project&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Edit Options&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Code&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Preprocessor&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Preprocessor Definitions&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;and add the&amp;nbsp;CONFIG_NFCT_PINS_AS_GPIOS&amp;nbsp;variable.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;When using Keil, go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;span&gt;Project&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Options for Target&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;C/C++&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Preprocessor Symbols&lt;/span&gt;&lt;abbr title="and then"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/abbr&gt;&lt;span&gt;Define&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;and add the&amp;nbsp;CONFIG_NFCT_PINS_AS_GPIOS&amp;nbsp;variable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;If you are using GCC, adding the symbol to CFLAGS in the Makefile is the correct approach.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>