<?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>UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111878/uart0-resource-always-busy-after-integrate-mcu-boot-in-our-project</link><description>HI. 
 
 we&amp;#39;re developing an application where we need to use 2 UART ports: UART: 0, 2, 3. 
 Before we added MCU boot in our project everything worked well but after we integrated bootloader application cannot use the UART0. It&amp;#39;s returning resource busy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jun 2024 13:37:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111878/uart0-resource-always-busy-after-integrate-mcu-boot-in-our-project" /><item><title>RE: UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/thread/488887?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 13:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94db44dd-2a3a-42a0-82ff-2a9424c308ce</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry, I was held up with some other work, which caused the delay in responding..&lt;/p&gt;
[quote user=&amp;quot;Deus Matei [EMERSON]&amp;quot;]My current issue with UART1 is that address range collides with I2C1. There&amp;#39;s any way to assign a different address to the UART peripheric?&amp;nbsp;
&lt;p&gt;By the phrase &amp;quot;address range colliding,&amp;quot; I assume that you are encountering a conflict in GPIO pin assignments between UART1 and I2C1. If both UART and I2C are using the same pin, then I recommend creating an overlay file and reassigning the pins for UART and I2C. If this is not the issue, could you provide more details on the problem, such as the error message or logs?&lt;/p&gt;
[quote user=&amp;quot;Deus Matei [EMERSON]&amp;quot;]Also because there&amp;#39;s no mcuboot.overlay it will still use uart0 as DFU by wire? Please help to clarify this also
&lt;p&gt;Yes, it is true that MCUBoot typically uses UART0 for serial recovery. However, when the booting process is over or when MCUBoot has completed its tasks, the main application takes control. When the main application starts, the peripheral resources, including UART0, are effectively reset and re-initialized.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/thread/488138?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 12:53:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff50acb7-ef7b-4e37-9503-4efc0666b6ae</guid><dc:creator>Deus Matei [EMERSON]</dc:creator><description>&lt;p&gt;Also because there&amp;#39;s no mcuboot.overlay it will still use uart0 as DFU by wire? Please help to clarify this also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/thread/488137?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 12:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f895d4e-8c2e-4ffb-86b5-63fb42b926a6</guid><dc:creator>Deus Matei [EMERSON]</dc:creator><description>&lt;p&gt;Hi, first I tried to assign uart2 to all zpehyr services in app.overlay. This solved my issue.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
		nordic,nus-uart = &amp;amp;uart2;
        zephyr,console = &amp;amp;uart2;
		zephyr,shell-uart = &amp;amp;uart2;
		zephyr,uart-mcumgr = &amp;amp;uart2;
		zephyr,bt-mon-uart = &amp;amp;uart2;
		zephyr,bt-c2h-uart = &amp;amp;uart2;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Another question, I&amp;#39;ll need UART2 for a different purpose in the app so I plan to move them to UART1. My current issue with UART1 is that address range collides with I2C1. There&amp;#39;s any way to assign a different address to the UART peripheric?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/thread/488079?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 10:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6791e2f-caca-423c-b8bd-a39421711ee3</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the details. Please update me with the results.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/thread/488061?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 08:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30a87c9f-b3fe-4ea6-b50c-e7399823ffa6</guid><dc:creator>Deus Matei [EMERSON]</dc:creator><description>&lt;p&gt;Hi, we&amp;#39;re using nrf5340 with SDK 2.4.0. I&amp;#39;m trying this option, I&amp;#39;ll come back with results&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART0 resource always busy after integrate MCU boot in our project</title><link>https://devzone.nordicsemi.com/thread/488036?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 07:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5bb7bb4-174b-4079-9412-b7ef26ea9ea1</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you share which SDK version you are using here? I assume that you are using nRF5340 (let me know if this is not the case). Do you have any logs to share? MCUBoot might be configured to use UART0 for logging or debugging purposes, which can cause the &amp;quot;resource busy&amp;quot; error when your application tries to use the same UART peripheral. See your mcuboot.conf file and see whether UART0 has been enabled for logging or debugging.&lt;/p&gt;
&lt;p&gt;Try disabling the UART0 just for mcuboot. For this, create an overlay file inside the child image folder as mcuboot. overlay and disable the UART0 there, and see if this works. Make sure UART0 is enabled for the application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>