<?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>SPI CS pin on nfc pin.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111985/spi-cs-pin-on-nfc-pin</link><description>I am trying to get SPI working but the cs pins is on P0.02/NFC1. 
 I believe this is because the gpio is not configured correctly. Here is a screenshot of my device tree. 
 Are there better instructions for doing this.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2024 18:04:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111985/spi-cs-pin-on-nfc-pin" /><item><title>RE: SPI CS pin on nfc pin.</title><link>https://devzone.nordicsemi.com/thread/488375?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 18:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61ccf517-8442-4b36-a2e3-35a96e8e5cd8</guid><dc:creator>abelREK</dc:creator><description>&lt;p&gt;Thanks for the quick response. I was able to find the answer in the documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The config is deprecated. Instead add the following to the device tree.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;amp;uicr { nfct-pins-as-gpios; };&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI CS pin on nfc pin.</title><link>https://devzone.nordicsemi.com/thread/488233?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 07:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a9c14ee-ad8e-46bc-b31a-04b3e748a6f1</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Abel,&lt;/p&gt;
&lt;p&gt;Since you are trying to use the P0.02 which is a NFC pin by default, you need to&amp;nbsp;disable NFC and enable GPIOs by setting the CONFIG_NFCT_PINS_AS_GPIOS to y in your prj.conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please take a look at the documentation:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/hw_nfc_if.html#d47e121:~:text=at%20every%20reset.-,Configuring%20NFC%20pins%20as%20GPIOs,-The%20NFC%20pins"&gt;https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/hw_nfc_if.html#d47e121:~:text=at%20every%20reset.-,Configuring%20NFC%20pins%20as%20GPIOs,-The%20NFC%20pins&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>