<?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>Changing UART TX and RX pins during Zephyr runtime with nrfx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78379/changing-uart-tx-and-rx-pins-during-zephyr-runtime-with-nrfx</link><description>Hello, 
 I have three devices that use UART, connected to an nRF52832 that I&amp;#39;m using NCS 1.6.0 to program. Since the nRF52832 only has one UART module and Zephyr has no native capability to change the pins, I was hoping to get some guidance in how can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Nov 2022 07:04:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78379/changing-uart-tx-and-rx-pins-during-zephyr-runtime-with-nrfx" /><item><title>RE: Changing UART TX and RX pins during Zephyr runtime with nrfx</title><link>https://devzone.nordicsemi.com/thread/397056?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 07:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:084c99ca-2b24-46a3-91ae-00755ea5e204</guid><dc:creator>zaman_turja_solshare</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/morerook"&gt;morerook&lt;/a&gt;&amp;nbsp;, i was working on same thing, i got the disable thing but how did you changed the pin and reenabled it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing UART TX and RX pins during Zephyr runtime with nrfx</title><link>https://devzone.nordicsemi.com/thread/324220?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 11:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4091503a-28d4-4012-a09e-2e0cddce3803</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="25226" url="~/f/nordic-q-a/78379/changing-uart-tx-and-rx-pins-during-zephyr-runtime-with-nrfx"]Would this be sufficient to switch the pins or is other configuration required?[/quote]
&lt;p&gt;You would e.g. need to disable the UART, configure the pins, and then enable the UART again for it to work.&lt;/p&gt;
&lt;p&gt;See e.g. this post:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77308/change-pinmux-at-runtime"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/77308/change-pinmux-at-runtime&lt;/a&gt;&lt;/p&gt;
[quote userid="25226" url="~/f/nordic-q-a/78379/changing-uart-tx-and-rx-pins-during-zephyr-runtime-with-nrfx"]Zephyr has no native capability to change the pins[/quote]
&lt;p&gt;Correct. You would need to use the nrfx API directly for this. This sample here might be useful:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/boards/nrf/nrfx_prs"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/boards/nrf/nrfx_prs&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>