<?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>nRF52840 dongle P0.24 and P0.22 can&amp;#39;t be changed.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111641/nrf52840-dongle-p0-24-and-p0-22-can-t-be-changed</link><description>Hello all, 
 I config nRF52840 dongle P0.24 and P0.22 as GPIO_OUTPUT. But when I change their value, they are always 0. 
 I use the same way to change other pins such as P0.02 and led1_bule, and they all can be set the value i want. 
 Here is my code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2024 01:49:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111641/nrf52840-dongle-p0-24-and-p0-22-can-t-be-changed" /><item><title>RE: nRF52840 dongle P0.24 and P0.22 can't be changed.</title><link>https://devzone.nordicsemi.com/thread/487399?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 01:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8031151-1644-4dfa-bc6c-c7328bc2d185</guid><dc:creator>TGuanLa</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;with uart0 being disabled, P0.22 and P0.24 could be set right value.&lt;/p&gt;
&lt;p&gt;Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle P0.24 and P0.22 can't be changed.</title><link>https://devzone.nordicsemi.com/thread/487341?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 13:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dde220e-5ad5-45ab-8d31-b57c979d748a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ah, ok. I found out that it was working when programming the DK with your application, but not the dongle. The issue was that P0.22 and P0.24 are by default used by the UART in the dongle&amp;#39;s board files:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 17)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 24)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 22)&amp;gt;;
			bias-pull-up;
		};
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(from nrf52840dongle_nrf52840-pinctrl.dtsi)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try disabling the uart completely in your nrf52840dongle_nrf52840.overlay file, by adding this bit at the very end:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;disabled&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;At least that did the trick for me.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle P0.24 and P0.22 can't be changed.</title><link>https://devzone.nordicsemi.com/thread/487196?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 04:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f1c7dd-099a-4ec4-bce5-411135900a96</guid><dc:creator>TGuanLa</dc:creator><description>&lt;p&gt;I use nRF Connect SDK v2.3.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle P0.24 and P0.22 can't be changed.</title><link>https://devzone.nordicsemi.com/thread/487140?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 13:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:955a0f78-3f39-4501-9199-7bb7e2e1d588</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What NCS version are you using?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle P0.24 and P0.22 can't be changed.</title><link>https://devzone.nordicsemi.com/thread/487010?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 02:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0b27f37-de81-44f0-9773-3421f25cc8ae</guid><dc:creator>TGuanLa</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;sorry for the late response.&lt;/p&gt;
&lt;p&gt;Here is my project. I set the GPIO value in function&amp;nbsp;&lt;strong&gt;m_gpio_initial()&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/receiver_5F00_PA_5F00_GPIO.zip"&gt;devzone.nordicsemi.com/.../receiver_5F00_PA_5F00_GPIO.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is my custom nRF52840 dongle SCH. I want to use P0.22 and P0.24 to control external PA&amp;amp;LNA.&lt;/p&gt;
&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/pastedimage1717381157448v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle P0.24 and P0.22 can't be changed.</title><link>https://devzone.nordicsemi.com/thread/486598?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 09:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c617de2-30a8-413e-b740-42b8bc3ea4da</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Difficult to say exactly what the issue might be based on this. Did you always have this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	nrf_radio_fem: pa_lna {
	   compatible = &amp;quot;skyworks,sky66112-11&amp;quot;, &amp;quot;generic-fem-two-ctrl-pins&amp;quot;;
	   ctx-gpios = &amp;lt;&amp;amp;gpio0 24 GPIO_ACTIVE_HIGH&amp;gt;;
	   crx-gpios = &amp;lt;&amp;amp;gpio0 22 GPIO_ACTIVE_HIGH&amp;gt;;
	};
 };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That is, did you try without this as well?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to zip and upload the application folder that you are currently using? Or a strip down version, that only replicates this issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>