<?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>UART1 still conflict with SPI1 even if the status of UART1 is &amp;quot;disabled&amp;quot; in the zephyr.dts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80462/uart1-still-conflict-with-spi1-even-if-the-status-of-uart1-is-disabled-in-the-zephyr-dts</link><description>I&amp;#39;m working on ncs 1.6.1 and nrf9160-DK. 
 I need to use SPI1, so i confirmed that UART1 is already disabled by default in ncs\v1.6.1\zephyr\boards\arm\nrf9160dk_nrf9160\nrf9160dk_nrf9160ns.dts 
 and i also add a &amp;amp;uart1 status = &amp;quot;disabled&amp;quot; in my overlay</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Oct 2021 11:23:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80462/uart1-still-conflict-with-spi1-even-if-the-status-of-uart1-is-disabled-in-the-zephyr-dts" /><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333901?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 11:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:703b5d30-93d6-4bc6-8ff6-28af3cb60daa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;OK, thanks for confirming. Either way, it&amp;#39;s perfectly fine to point to the board overlay from your Cmakelist file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333872?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 09:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c645dca-f115-4f5a-a442-272b352ebbf9</guid><dc:creator>peter_liu</dc:creator><description>&lt;p&gt;Oh, It&amp;#39;s just a typo here, i actually use the right path with my test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333865?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 09:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05594ef-40c1-4eca-97d6-64c4b4e6082e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s the root cause.&lt;/p&gt;
&lt;p&gt;There are several ways you can apply overlays for a child images as described here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#child-image-devicetree-overlays"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#child-image-devicetree-overlays&lt;/a&gt;. I find it easiest to just add the overlay in the child_image folder like I suggested earlier.&lt;/p&gt;
&lt;p&gt;&amp;lt;project directory&amp;gt;\&lt;strong&gt;child_image&lt;/strong&gt;\&lt;strong&gt;spm&lt;/strong&gt;\nrf9160dk_nrf9160.overlay&amp;quot;&lt;/p&gt;
[quote user="peter_liu"]I tried to add the&amp;nbsp;&lt;span&gt;&amp;lt;project directory&amp;gt;\child_image&lt;/span&gt;&lt;span&gt;spm\nrf9160dk_nrf9160.overlay, but the uart1&amp;#39;s status is still &amp;quot;okay&amp;quot; in the &amp;lt;build directory&amp;gt;\spm\zephyr\zephyr.dts.&lt;/span&gt;[/quote]
&lt;p&gt;Is it a typo in your path here? It should be \&lt;strong&gt;child_image&lt;/strong&gt;\&lt;strong&gt;spm&lt;/strong&gt;\&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333844?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 08:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe2798a-3c60-4651-bf48-f84a1612a4cc</guid><dc:creator>peter_liu</dc:creator><description>&lt;p&gt;So, the root cause of this problem is that the SPM occupies the uart1. correct?&lt;/p&gt;
&lt;p&gt;and after all, I can change the&amp;nbsp;&lt;span&gt;spm\zephyr\zephyr.dts only if i add following script in my CmakeList.txt.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;set(spm_DTC_OVERLAY_FILE &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay&amp;quot;)&lt;/p&gt;
&lt;p&gt;while the&amp;nbsp;&lt;span&gt;spm.conf doesn&amp;#39;t need any scripts to add, i wonder where is the file to define the locations of these .conf .overlay files?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333666?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 08:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:927997bf-8b30-4438-bce1-a21b28fc2b06</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, that will also work because it will prevent the SPM from initializing UART1. However, I&amp;#39;m not sure why status didn&amp;#39;t change to &amp;quot;disabled&amp;quot;. It worked when I tried it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333634?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 07:31:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07d4af02-3e1a-47c1-b3dc-06c3ef8f8beb</guid><dc:creator>peter_liu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried to add the&amp;nbsp;&lt;span&gt;&amp;lt;project directory&amp;gt;\child_image&lt;/span&gt;&lt;span&gt;spm\nrf9160dk_nrf9160.overlay, but the uart1&amp;#39;s status is still &amp;quot;okay&amp;quot; in the &amp;lt;build directory&amp;gt;\spm\zephyr\zephyr.dts.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;however, i found that the application sample &amp;quot;serial lte modem&amp;quot; doesn&amp;#39;t have this problem (even its&amp;nbsp;uart1&amp;#39;s status is &amp;quot;okay&amp;quot; in the \spm\zephyr\zephyr.dts). so, after analyzing the differences, i find that adding &amp;quot;&amp;lt;project directory&amp;gt;\child_image\spm.conf&amp;quot; and only &amp;quot;CONFIG_SERIAL=n&amp;quot; in the spm.conf file can solve this problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;do you know why?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART1 still conflict with SPI1 even if the status of UART1 is "disabled" in the zephyr.dts</title><link>https://devzone.nordicsemi.com/thread/333470?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 11:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e602174-6e4c-40ce-aa40-e7fe02eeac10</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try to add the DTS overlay for the SPM subimage as well by adding a overlay named &amp;quot;nrf9160dk_nrf9160.overlay&amp;quot; in &amp;lt;project directory&amp;gt;\child_image\spm\nrf9160dk_nrf9160.overlay&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;uart1 {
	    status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then to confirm that UART1 is indeed disabled by opening the &amp;lt;build directory&amp;gt;\spm\zephyr\zephyr.dts file and confirm that UART1 status is set to disabled:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633951257231v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>