<?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>Can I reconfigure the pin instead of using the overlay class?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112288/can-i-reconfigure-the-pin-instead-of-using-the-overlay-class</link><description>Hello I&amp;#39;m using SDK v2.4.2 zephyr Can I reconfigure the pin instead of using the overlay class?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jun 2024 12:14:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112288/can-i-reconfigure-the-pin-instead-of-using-the-overlay-class" /><item><title>RE: Can I reconfigure the pin instead of using the overlay class?</title><link>https://devzone.nordicsemi.com/thread/490272?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 12:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8dc7117-7c29-4595-8f0c-e3eaba185b5b</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Dinh Son"]Can we change that gpio from input to output state (or from spi to i2c...) while the program is running or edit it directly in the dts file and then flash the program to the hardware?[/quote]
&lt;p&gt;You could take a look at this : &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.1.3/page/zephyr/samples/boards/nrf/dynamic_pinctrl/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.1.3/page/zephyr/samples/boards/nrf/dynamic_pinctrl/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also edit the gpio configurations directly in the dts file.. But again, it is not recommended, as using an overlay is always the best option since the default settings will be retained in that case and will be easier for better debugging in case of any erors. Any free gpio pins can be used for spi, uart etc.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I reconfigure the pin instead of using the overlay class?</title><link>https://devzone.nordicsemi.com/thread/489831?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 02:43:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037ba252-0631-4ac5-a3a6-155954e8d8d3</guid><dc:creator>Dinh Son</dc:creator><description>&lt;p&gt;Thank you for your reply&lt;br /&gt;Can we change that gpio from input to output state (or from spi to i2c...) while the program is running or edit it directly in the dts file and then flash the program to the hardware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I reconfigure the pin instead of using the overlay class?</title><link>https://devzone.nordicsemi.com/thread/489716?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 11:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8c0154-f3e7-440f-9b07-f84a03353fa6</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is possible to make the changes directly in the dts file. But is always better to do this in the overlay since it will overwrite the dts file while retaining the original configuration.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>