<?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>Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89166/unable-to-set-p0-01-as-a-gpio-output</link><description>As the title suggests, I am unable to set P0.01 as a gpio output. I know this pin is also used to source an external LFCLK, however I am using the internal RC clock. 
 I have the following defines in sdk_config 
 #define NRFX_CLOCK_CONFIG_LF_SRC 0 #define</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jun 2022 23:50:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89166/unable-to-set-p0-01-as-a-gpio-output" /><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/374036?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 23:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5be314f-b154-4a0d-9334-7334fbe0c2bb</guid><dc:creator>hjklas</dc:creator><description>&lt;p&gt;After testing out these two pins (P0.00 and P0.01) on a custom board of ours it seems to work fine. This means it wasn&amp;#39;t a firmware issue but some kind of issue with the mbn52832 dev board. I am still confused as to why it didn&amp;#39;t work since I put the 0 ohm resistors in the right place and even tried on two different boards.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/374018?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 17:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca9e200-1fed-4be7-8057-aec92dabd0f2</guid><dc:creator>hjklas</dc:creator><description>&lt;p&gt;Yes, I have a tested a few other pins. Only P0.00 and P0.01 do not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373838?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 07:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c229d86e-1bbf-4981-8f6c-f6c1168166c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Just to make sure, have you verified if you are able to toggle other pins if you only change out the pin number in your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373790?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 20:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6624bd87-e55d-4e62-a918-10f593b932b2</guid><dc:creator>hjklas</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1655927290506v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have done something similar where I am continuously checking LFCKLSRC to make sure it is set to the internal RC at all times.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373788?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 19:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b867803d-0167-4e56-ac57-7af3f3b2e89d</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Perhaps have a look at the LFCLKSRC register; maybe it is not cleared correctly; both pins are either i/o or crystal, This is some code I posted a few years ago:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Note 32kHz Osc pins can be both used as GPIOs or both used as 32kHz Crystal Oscillator
if ( (ThisPinId == PIN_NRF_XL2) &amp;amp;&amp;amp; (NRF_CLOCK-&amp;gt;LFCLKSRC &amp;amp; 0x000001) ) return &amp;quot;RTC-OSC-OUT&amp;quot;;
if ( (ThisPinId == PIN_NRF_XL1) &amp;amp;&amp;amp; (NRF_CLOCK-&amp;gt;LFCLKSRC &amp;amp; 0x000001) ) return &amp;quot;RTC-OSC-IN&amp;quot;;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373784?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 18:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:624f479a-1ba9-4644-a94f-921cdf08df1c</guid><dc:creator>hjklas</dc:creator><description>&lt;p&gt;I have performed continuity tests to ensure the connection from the resistor to the pin. There doesn&amp;#39;t seem to be a way I can directly probe the output pin on the mcu.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t think of anything else to test at this point, it seems like I have hit a dead end.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373646?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 11:27:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf86b92-cb82-4ae2-92cc-f6f91638c421</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Harrison,&lt;/p&gt;
&lt;p&gt;Strange. I looked over schematics again, and I don&amp;#39;t see anything else that needs to be changed to route the XL IOs to the pin header. Only suggestion I can think of at this point is that you try to perform a continuity test to verify the connection.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373534?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 17:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b908775-fa54-422b-a6dc-3266ee283323</guid><dc:creator>hjklas</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am seeing the same result after running your project. The XL1 and XL2 pins are staying low the whole time. There shouldn&amp;#39;t be any other hardware changes besides moving the 0 ohm resistors correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Harrison Klas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to set P0.01 as a GPIO output</title><link>https://devzone.nordicsemi.com/thread/373467?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 13:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce7499f-19d8-4693-975f-0ecc9d939aab</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It sounds like you have performed all the neccessary steps. That is, made sure the pins are routed to the pin header by moving the 0 ohm resistors, and made sure that the LF crystal oscillator was not enabled. Could you run to run the project or program the hex file below and see if it gives the same result? I verified that it worked on a nRF52 DK here.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_pca10040_5F00_toggle_5F00_xl1_5F00_and_5F00_xl2.hex"&gt;devzone.nordicsemi.com/.../blinky_5F00_pca10040_5F00_toggle_5F00_xl1_5F00_and_5F00_xl2.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_use_5F00_xl_5F00_pins_5F00_as_5F00_gpio.zip"&gt;devzone.nordicsemi.com/.../blinky_5F00_use_5F00_xl_5F00_pins_5F00_as_5F00_gpio.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>