<?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>How to configure the P0.00 and P0.01 pins as GPIO?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99765/how-to-configure-the-p0-00-and-p0-01-pins-as-gpio</link><description>Sorry for my trivial question but how can I configure the P0.00 and P0.01 pins as GPIO? On my custom board I have a nRF52840 module which has a 32.768KHz crystal connected on P0.00 and P0.01. I read that the theese pins are configured as XL1 and XL2 as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 May 2023 12:49:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99765/how-to-configure-the-p0-00-and-p0-01-pins-as-gpio" /><item><title>RE: How to configure the P0.00 and P0.01 pins as GPIO?</title><link>https://devzone.nordicsemi.com/thread/425862?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 12:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f50ca3fc-7955-476d-89b0-6cf40319b37d</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;If your board has a low frequency 32k crystal connected to the P0.00/P0.01 pins, this must be physically removed in order for you to use those pins as normal GPIOs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To change the LFCLK source, you can set this kconfig entry:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/pre&gt;&lt;/p&gt;
[quote user=""]And most important, is the&amp;nbsp;&lt;span&gt;32.768KHz crystal necessary for the BLE or the Zephyr&amp;#39;s kernel?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, there&amp;#39;s a hard requirement to use a LFCLK.&lt;/p&gt;
&lt;p&gt;Please note that you can use the internal 32k RC oscillator for this, which does not have a GPIO dependency.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind 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>