<?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>nRF5340: best way to configure P0.02 (NFCT) as GPIO with TFM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113935/nrf5340-best-way-to-configure-p0-02-nfct-as-gpio-with-tfm</link><description>Hello, 
 We have an nRF5340 (custom PCB) application, based on NCS 2.6, that uses the TFM and needs to use P0.02 (NFCT) as SPI CS. 
 Currently, the CS is not moving, since the pin is by default assigned as NFCT. 
 I am unsure what is the best way to let</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2024 12:36:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113935/nrf5340-best-way-to-configure-p0-02-nfct-as-gpio-with-tfm" /><item><title>RE: nRF5340: best way to configure P0.02 (NFCT) as GPIO with TFM</title><link>https://devzone.nordicsemi.com/thread/498841?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 12:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c567668d-a50d-483f-be3f-eee75d8743c3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: best way to configure P0.02 (NFCT) as GPIO with TFM</title><link>https://devzone.nordicsemi.com/thread/498689?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 16:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d47a88-38b1-4bd1-b83e-75ca39b97afc</guid><dc:creator>Matteo Elimo</dc:creator><description>&lt;p&gt;Thank you, that sounds like the current solution will work for the time being, and then we will migrate to 2.7 and we will just be able to remove&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS, as PC0.02 will be a GPIO by default, is that correct?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: best way to configure P0.02 (NFCT) as GPIO with TFM</title><link>https://devzone.nordicsemi.com/thread/498572?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 08:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01d603d1-9998-4f3c-8812-a94be5703982</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;&lt;span&gt;So this was unfortunately not resolved for 2.6. We have a fix that got merged in 2.7 with the ‘correct’ way of configuring this that will be supported in the future in this PR here:&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/14228"&gt;https://github.com/nrfconnect/sdk-nrf/pull/14228&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;The way to do this with this PR is that you just enable or disable the nfct device in the overlay of the non secure board. &lt;br /&gt;So by default the NFCT as GPIOS will be enabled since the device is disabled. In case you want to use the NFCT device you will have to enable it in the non secure overlay like this:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;code style="white-space:pre;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;code style="white-space:pre;"&gt;&lt;span&gt;&amp;amp;nfct {
&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;code style="white-space:pre;"&gt;	status = &amp;quot;okay&amp;quot;;
&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;code style="white-space:pre;"&gt;};&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;This will basically automatically disable the NFCT as GPIOS option since you are using the NFCT device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: best way to configure P0.02 (NFCT) as GPIO with TFM</title><link>https://devzone.nordicsemi.com/thread/498466?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 12:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab01778-282c-46c6-9d3e-7f3b28482879</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will look into this and return with more information on Monday.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>