<?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>case about nRF54L15 dtm UART RX TX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116687/case-about-nrf54l15-dtm-uart-rx-tx</link><description>Hi, 
 1. I am testing nRF54L15 PDK PCA10156 0.8.1 Example is: ncs\v2.8.0\nrf\samples\bluetooth\direct_test_mode 2. Which pins can be used as UART TX and which pins can be used as UART RX? 3. How do I switch between TX and RX in the example direct_test_mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2024 11:11:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116687/case-about-nrf54l15-dtm-uart-rx-tx" /><item><title>RE: case about nRF54L15 dtm UART RX TX</title><link>https://devzone.nordicsemi.com/thread/512080?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 11:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40eef720-f146-4dac-a356-5d7ac5ec6690</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I assume you want the firmware to be able to auto detect the UART pin and re-configure to use the pins as UART. Unfortunately it&amp;#39;s not possible.&amp;nbsp;&lt;br /&gt;The only think I can think of is that you can have a switch on the board that control some GPIO pin state, and by checking the GPIO pins the firmware can find which configuration it should use (requires a boot up).&amp;nbsp;&lt;br /&gt;Please take a look here:&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/zephyr/samples/boards/nordic/dynamic_pinctrl/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/zephyr/samples/boards/nordic/dynamic_pinctrl/README.html&lt;/a&gt;&lt;br /&gt;Note: the board need to do a reset to change the pins.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: case about nRF54L15 dtm UART RX TX</title><link>https://devzone.nordicsemi.com/thread/512044?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 08:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d10d6bf1-278c-4294-9047-da7f707ecc04</guid><dc:creator>peter.min</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Hung Bui,&lt;/p&gt;
&lt;p&gt;1. This problem is caused by frequent modification and compilation of the dtm firmware serial port for testing.&lt;br /&gt;2. Therefore, it is hoped that the firmware can automatically test in the code to find the serial port IO port to do dtm and set its IO port as a serial port.&lt;/p&gt;
&lt;p&gt;Thank&amp;ensp;you&amp;ensp;for&amp;ensp;all&amp;ensp;your&amp;ensp;assistance.&lt;br /&gt;Kind regards,&lt;br /&gt;Peter.Min&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: case about nRF54L15 dtm UART RX TX</title><link>https://devzone.nordicsemi.com/thread/511878?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 12:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974d8040-9e8a-4309-b803-aef0d7662f2a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;By default DTM uses uart20 as the UART port see&amp;nbsp;nrf54l15dk_nrf54l15_cpuapp.overlay file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pins uart20 uses are:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;	/omit-if-no-ref/ uart20_default: uart20_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 1, 4)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 1, 6)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 1, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 1, 7)&amp;gt;;
			bias-pull-up;
		};
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can see this on the back side of the nRF54L DK. TXD= P1.04;RXD = P1.05&lt;/p&gt;
&lt;p&gt;3. If you want to change the UART pins, you can add that in the overlay file. For example, the following will reverse the TXD and RXD pins:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	/omit-if-no-ref/ uart20_default: uart20_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 1, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 1, 6)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 1, 4)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 1, 7)&amp;gt;;
			bias-pull-up;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. Please clarify what exactly you want to do. By default Zephyr doesn&amp;#39;t allow changing pins dynamically in run time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>