<?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>Overlay conflict with dts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116431/overlay-conflict-with-dts</link><description>Hello, 
 I have a project for the nRF52811 using the nRF Connect SDK. As I understand, it’s not recommended to modify the main .dts file directly; instead, changes should be made through an .overlay file. 
 However, when I add a button to my overlay on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Nov 2024 13:44:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116431/overlay-conflict-with-dts" /><item><title>RE: Overlay conflict with dts</title><link>https://devzone.nordicsemi.com/thread/510711?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 13:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f50dd6a-416e-4dd7-836f-36589ca7f9dc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. I will report this internally.&lt;/p&gt;
[quote user=""]I have a project for the nRF52811 using the nRF Connect SDK. As I understand, it’s not recommended to modify the main &lt;code&gt;.dts&lt;/code&gt; file directly; instead, changes should be made through an &lt;code&gt;.overlay&lt;/code&gt; file.[/quote]
&lt;p&gt;The other recommended alternative is to create&amp;nbsp;your own board file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overlay conflict with dts</title><link>https://devzone.nordicsemi.com/thread/510706?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 13:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd0fe55-1e42-44c9-9787-846b2315c5b4</guid><dc:creator>witc</dc:creator><description>&lt;p&gt;OK, looks like the problem is only in VSCode extension now:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1731677754657v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overlay conflict with dts</title><link>https://devzone.nordicsemi.com/thread/510695?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 13:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf3dd53-6f32-4c21-8dab-932c4b414d0b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you see warnings in the build output as well (can be viewed by opening the terminal view in VS code). The warnings may be a false positive given by the DT extension. To confirm this, you may check the generated zephyr.dts file in your build folder to see if the aliases and leds node are present or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overlay conflict with dts</title><link>https://devzone.nordicsemi.com/thread/510692?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 13:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a014664-1de5-4e44-a827-ef32fae28179</guid><dc:creator>witc</dc:creator><description>&lt;p&gt;Thank you. But still error:&lt;/p&gt;
&lt;p&gt;This is in my overlay:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;&amp;#160; aliases{
&amp;#160; &amp;#160; &amp;#160; &amp;#160; btntx1 = &amp;amp;btntx1;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; btntx2 = &amp;amp;btntx2;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; btntx3 = &amp;amp;btntx3;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; btntx4 = &amp;amp;btntx4;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; adcbat = &amp;amp;adcbat;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; adcbat2 = &amp;amp;adcbat2;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; userledgreen = &amp;amp;ledtxgreen;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; userledred &amp;#160;= &amp;amp;ledtxred;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; /delete-property/ led0;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; /delete-property/ led1;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; /delete-property/ led2;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; /delete-property/ led3;
&amp;#160; &amp;#160; };

&amp;#160; &amp;#160; /delete-node/ leds;&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;But in .dts file is error becasue the aliases for led0,1,2,3 are undefined:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;aliases {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; led0 = &amp;amp;led0;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; led1 = &amp;amp;led1;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; led2 = &amp;amp;led2;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; led3 = &amp;amp;led3;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; pwm-led0 = &amp;amp;pwm_led0;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; sw0 = &amp;amp;button0;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;What else is wrong? Thank you
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="gtx-anchor" style="height:13.6px;left:119.162px;position:absolute;top:437.4px;width:37.6875px;"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble gtx-bubble" style="left:123px;top:308px;"&gt;
&lt;div id="bubble-4" class="jfk-bubble-content-id"&gt;
&lt;div id="gtx-host" style="max-width:400px;"&gt;&lt;/div&gt;
&lt;div style="max-width:400px;"&gt;in&amp;nbsp; .dts:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1731676189441v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowdown" style="left:130.162px;"&gt;
&lt;div class="jfk-bubble-arrowimplbefore"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrowimplafter"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overlay conflict with dts</title><link>https://devzone.nordicsemi.com/thread/510663?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 11:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ffbbb05-0408-4610-b410-067df7238943</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The alias needs to be deleted as well. Please see my answer in this thread:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108807/nrf5340-zephyr-cannot-disable-led-node"&gt;nRF5340 + Zephyr cannot disable led node&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>