<?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>Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109561/add-uart1-in-devicetree-address-range-collides-with-others-peripherals</link><description>Hi Supporter 
 I use nRF7002-DK, toolchains and SDK version use v2.5.2, I try to modify Devicetree for nrf5340_app_common.dts file for add UART1 node, when I view visual editor as below, found UART1 and i2c register address was collidesed as below red</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Apr 2024 08:02:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109561/add-uart1-in-devicetree-address-range-collides-with-others-peripherals" /><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/476770?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 08:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60129216-639e-4795-9eab-87a434d164c8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Tina,&lt;/p&gt;
&lt;p&gt;I see. That sample only use one UART, and specifically the UART that is configured as the Zephyr console. So if you want to add another UART and use that you need to add code for using it. I suggest you take a look at &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-4-serial-communication-uart/"&gt;Lesson 5 – Serial communication (UART)&lt;/a&gt;&amp;nbsp;as well as the &lt;a href="https://github.com/NordicDeveloperAcademy/ncs-fund/tree/main/v2.x.x/lesson5"&gt;exercise&lt;/a&gt; for that module as an example of how you can do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/476575?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 12:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10bac086-fc0a-4731-96ac-df0b9c35291f</guid><dc:creator>yithwe</dc:creator><description>&lt;p&gt;Hi Einar Thrsrud&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I use&amp;nbsp;v2.5.2\zephyr\samples\drivers\uart\echo_bot sample code, I need to open two serial terminal window and connect two uart for view the result and feedback speed.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tina&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/476570?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 12:34:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e715ce8-9b36-4ab7-9180-85c8d29953b9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;UART0 is enabled in the generated DTS you uploaded:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;			uart0: uart@8000 {
				compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
				reg = &amp;lt; 0x8000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0x8 0x1 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				current-speed = &amp;lt; 0xe1000 &amp;gt;;
				pinctrl-0 = &amp;lt; &amp;amp;uart0_default &amp;gt;;
				pinctrl-1 = &amp;lt; &amp;amp;uart0_sleep &amp;gt;;
				pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, it is not used for anything directly, unlike uart1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	chosen {
		zephyr,entropy = &amp;amp;cryptocell;
		zephyr,flash-controller = &amp;amp;flash_controller;
		zephyr,console = &amp;amp;uart1;
		zephyr,shell-uart = &amp;amp;uart1;
		zephyr,uart-mcumgr = &amp;amp;uart1;
		zephyr,bt-mon-uart = &amp;amp;uart1;
		zephyr,bt-c2h-uart = &amp;amp;uart1;
...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How do you intend to use UART0 and in what way does it not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/476561?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 12:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ef6702-414b-4509-a978-4d71f8b98d90</guid><dc:creator>yithwe</dc:creator><description>&lt;p&gt;Hi Einar Thorsrud&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I rebuild the project, but UART0 isn&amp;#39;t activate, it seen &amp;quot;overridden by later entry&amp;quot;, zephyr.dts also no uart0 inforation, attached file is zephyr.dts in build floder.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8103.zephyr.dts"&gt;devzone.nordicsemi.com/.../8103.zephyr.dts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tina&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8103.zephyr.dts"&gt;devzone.nordicsemi.com/.../8103.zephyr.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/476515?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 10:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f50d6112-a767-4d89-b526-fa3f428ca631</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Tina,&lt;/p&gt;
[quote user="yithwe"]Another question is how to set the uart as slave type?[/quote]
&lt;p&gt;There is no master/slave concept in UART. Both devices are equal.&lt;/p&gt;
[quote user="yithwe"]but UART1 is not activate as below picture.[/quote]
&lt;p&gt;Did you re-build the project? If not, the highlighting in the IDE might be incorrect (and in some other cases as well). The best way to see what you ended up with is to look at the generated zephyr.dts file in your build folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/475523?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 05:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff5ee037-2358-4d56-a52f-718323e75ac2</guid><dc:creator>yithwe</dc:creator><description>&lt;p&gt;Hi Einar Thorsrud&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Another question is how to set the uart as slave type?which and where I need to config for uart slave status?and how to active UART0 and UART1 at the same time?it&amp;#39;s need to modify nrf5340_cpuapp_common.dts file?&lt;/p&gt;
&lt;p&gt;below is I mark for i2c and release the resource for UART1, I saw the UART1 is not address range collides, but UART1 is not activate as below picture.I also add the chosen as below picture, can&amp;#39;t active UART0 &amp;amp; UART1 at the same time.&lt;/p&gt;
&lt;p&gt;I use Uart/echo sample for this setting.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1711348735612v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1711349490705v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Tina&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/475421?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 14:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f8eb8f9-a52f-4a1e-9e39-cddc77449dd7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Tina,&lt;/p&gt;
&lt;p&gt;Yes, that is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/475407?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 13:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8e489b-8aca-4704-a654-e53126d19dfd</guid><dc:creator>yithwe</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;So it means if I no need to use for i2c peripherals for this time,I can omit or disable for i2c and release the resource for UART1?&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tina&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add UART1 in Devicetree address range collides with others peripherals</title><link>https://devzone.nordicsemi.com/thread/475404?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 13:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e271262-1f59-48d1-8a8d-f8082b0d2bc3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Many peripheral shares internal resoruces and cannot be enabled at the same time. These are &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/peripheral_interface.html#ariaid-title2"&gt;peripherals with the same ID&lt;/a&gt;. There is no way to use these simultaniously, so you need to pick a different set of instances that does not overlap.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>