<?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>Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79737/setting-value-of-gpio-output</link><description>Hello all, 
 I am trying to do a simple task, yet I cannot manage to make it work. My goal is to use the GPIO 1.01 (defined as Digital I/O in the Data Sheet) as an output pin, set its logical value to High/Low and observe all changes in a Logic Analyzer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Nov 2021 10:32:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79737/setting-value-of-gpio-output" /><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/337654?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 10:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f46377b7-4b37-406f-ac4e-2f04f4c52de9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As of right know, the edit should be done in the specific file. As you can read from the comment, the developers are aware of this non optimal solution, and I&amp;#39;m confident that this will change in a future release so that the pins assignment is done based on a overlay file instead of hardcoding values.&lt;/p&gt;
[quote user="jbf12"]&lt;p&gt;As far as I understand, this file is part of the Nordic toolchain. This means, that each developer building and running my project would have to manually edit the file. I do not really find this optimal..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;I totally agree with you.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/337558?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 16:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a3dbe4-2eba-46cf-b7dc-b7a833445c91</guid><dc:creator>jbf12</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I modified the file as you suggested, set the pins &lt;em&gt;&lt;span class="pl-en"&gt;CPUNET_UARTE_PIN_RTS&lt;/span&gt; &lt;/em&gt;&lt;span class="pl-c1"&gt;&lt;/span&gt; and &lt;em&gt;&lt;span class="pl-en"&gt;CPUNET_UARTE_PIN_CTS&lt;/span&gt;&lt;/em&gt; to a different value and the issue is now gone &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I wonder if there is any alternative to manually modifying the pins &lt;em&gt;&lt;/em&gt;in the&amp;nbsp;&lt;em&gt;nrf5340_cpunet_reset.c&lt;/em&gt; file. Can I maybe do it from the overlay file? &lt;br /&gt;As far as I understand, this file is part of the Nordic toolchain. This means, that each developer building and running my project would have to manually edit the file. I do not really find this optimal..&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/332657?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb7c0795-9edd-4867-872f-c9fe79fe35b7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jbf12"]&lt;p&gt;Does this make any sense? Is there any incompatibility between GPIO and Bluetooth that I am overlooking?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes it does make sense :) You&amp;#39;re&amp;nbsp;actually correct.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/01a38e7fa55913350c647df1f51715fea5d80daa/boards/arm/nrf5340dk_nrf5340/Kconfig#L69"&gt;Activating BLE will&amp;nbsp;enable the network core&lt;/a&gt; which will allocates the pins specified &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/boards/arm/nrf5340dk_nrf5340/nrf5340_cpunet_reset.c#L17"&gt;here &lt;/a&gt;for the its UART.&amp;nbsp; atm the uart pins are hard coded, so you would have to edit the file to reconfigure the pins.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/332231?ContentTypeID=1</link><pubDate>Sun, 03 Oct 2021 15:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cddf2b3-42f2-4f29-be3b-d6e857e623d2</guid><dc:creator>jbf12</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;thanks for the reply, I was busy with other tasks but finally could get back to this issue.&lt;/p&gt;
&lt;p&gt;I managed to control various pins (P1.01, P0.11, P1.04) and even use P0.11 as SS for an SPI interface without the need to cut any solder bridge. I did a minimal project configuration. As soon as I removed the configuration option CONFIG_BT=y from my prj.conf, the pin started working.&lt;/p&gt;
&lt;p&gt;To be more clear, pin 0.11 can be set to high/low with the following prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#GPIO
CONFIG_GPIO=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;whereas with the following prj.conf, the pin stays always low and cannot be controlled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#GPIO
CONFIG_GPIO=y

#Bluetooth
CONFIG_BT=y 
//same behaviour regardless of value of following config options
#CONFIG_BT_PERIPHERAL=y             
#CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_LBS&amp;quot;  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does this make any sense? Is there any incompatibility between GPIO and Bluetooth that I am overlooking?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/330225?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 10:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9673ee-1de5-40ee-95b7-21476bc78105</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at the schematics for the DK I see that PIN P0.11 is also connected to a solder bridge that might need to be cut for it work. Could you try P0.04?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/330082?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 14:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e8780aa-9f34-410d-a05f-162196690f61</guid><dc:creator>jbf12</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I also tried with pin P0.11 as well. Unfortunately the result was the same.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting value of GPIO Output</title><link>https://devzone.nordicsemi.com/thread/330077?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 14:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b992c1b7-5038-4d94-9885-37f8f5568c2c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried setting any other pin on the board? Could you try cutting solder bridge SB30 on the board and see if it works now?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>