<?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>Zephyr and Device Tree GPIO on Custom Board. GPIO won&amp;#39;t turn on</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111095/zephyr-and-device-tree-gpio-on-custom-board-gpio-won-t-turn-on</link><description>Hello, 
 
 I&amp;#39;m currently using the nRF SDK V2.6.1 and Zephyr V3.5(.99?) The .99 is the &amp;quot;PATCH&amp;quot;. I&amp;#39;m attempting to work with the nRF5340dk. 
 For context, I&amp;#39;m learning how to work with Zephyr, VS Code, and all that, since before this I was used to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 12 May 2024 18:19:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111095/zephyr-and-device-tree-gpio-on-custom-board-gpio-won-t-turn-on" /><item><title>RE: Zephyr and Device Tree GPIO on Custom Board. GPIO won't turn on</title><link>https://devzone.nordicsemi.com/thread/482916?ContentTypeID=1</link><pubDate>Sun, 12 May 2024 18:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:119b3a47-0034-46e4-9645-ea4475326577</guid><dc:creator>Nico7</dc:creator><description>&lt;p&gt;Thank you, for my case, I was trying to use the GPIO as an output though&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr and Device Tree GPIO on Custom Board. GPIO won't turn on</title><link>https://devzone.nordicsemi.com/thread/482915?ContentTypeID=1</link><pubDate>Sun, 12 May 2024 18:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4069fea6-cdd4-4b2b-a8ad-590afe170d07</guid><dc:creator>Nico7</dc:creator><description>&lt;p&gt;Ok, I just realized that in the Dev Kit there are two unpopulated resistors to be able to enable P0.03 (an P0.02) because they are otherwise NFC pins by default.&lt;br /&gt;&lt;br /&gt;Please feel free to close this ticket as I was able to confirm that the code I presented does change the pin value, but I just couldn&amp;#39;t see it happen because the resistors are not connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr and Device Tree GPIO on Custom Board. GPIO won't turn on</title><link>https://devzone.nordicsemi.com/thread/482890?ContentTypeID=1</link><pubDate>Sat, 11 May 2024 08:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b2b97f8-fb89-4e5d-99ad-ca179e95dcda</guid><dc:creator>Nico7</dc:creator><description>&lt;p&gt;Ok, I was able to get it going by switching to pin 0.12 as per &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101162/can-t-override-pin-assignment-in-overlay"&gt;Can&amp;#39;t override pin assignment in .overlay&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, I was trying to use P0.03, which connects to nft pins (nftc).&amp;nbsp; so I modified my overlay file to include &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
&amp;amp;nfct {
    status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And I switched to build for the secure setting, because I&amp;#39;ll need to access the UICR register as per: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94197/config_nfct_pins_as_gpios-y-doesn-t-work"&gt;devzone.nordicsemi.com/.../config_nfct_pins_as_gpios-y-doesn-t-work&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But I guess that&amp;#39;s where I&amp;#39;m stuck...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr and Device Tree GPIO on Custom Board. GPIO won't turn on</title><link>https://devzone.nordicsemi.com/thread/482887?ContentTypeID=1</link><pubDate>Sat, 11 May 2024 07:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:febf0298-3fb2-4c51-8fce-dd0ca3064d06</guid><dc:creator>tejasVyas</dc:creator><description>&lt;p&gt;Hello there,&lt;br /&gt;my board do not contain button, so here what I&amp;#39;m doing is my gpio pin 0.2 im making it as a button.&lt;br /&gt;hope you will find this example useful.&lt;br /&gt;my board is xiao ble.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
buttons {
compatible = &amp;quot;gpio-keys&amp;quot;;
button0: button_0 {
gpios = &amp;lt;&amp;amp;gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
label = &amp;quot;Push button switch 0&amp;quot;;
zephyr,code = &amp;lt;2&amp;gt;;
};

};
aliases{
sw0=&amp;amp;button0;
};

};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>