<?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>How can I increase the number of aliases leds in NRF5340-DK via overlay file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83730/how-can-i-increase-the-number-of-aliases-leds-in-nrf5340-dk-via-overlay-file</link><description>Hi 
 I want to increase the number of leds in DTS file of peripheral-uart sample by using overlay file. 
 Is it possible to manipulate the aliases in DTS file by editing the overlay file?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jan 2022 12:24:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83730/how-can-i-increase-the-number-of-aliases-leds-in-nrf5340-dk-via-overlay-file" /><item><title>RE: How can I increase the number of aliases leds in NRF5340-DK via overlay file</title><link>https://devzone.nordicsemi.com/thread/348274?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 12:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c8055d8-b0a0-438c-97b3-7ffe8f96d849</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Ok I understand.&lt;/p&gt;
&lt;p&gt;You can not add an alias for a node that doesn&amp;#39;t exist in the devicetree, so in order to make your led4 alias you will first have to define the &amp;amp;led4 node in your overlay file.&lt;/p&gt;
&lt;p&gt;You can see what a led node should look like if you look up the already defined led nodes in the build/zephyr/zephyr.dts devicetree file in your project folder.&lt;/p&gt;
&lt;p&gt;Basically you will have to define what gpio it uses and give it a reference label.&lt;/p&gt;
&lt;p&gt;Please read&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/guides/dts/intro.html"&gt;the introduction to Zephyr devicetrees&lt;/a&gt;&amp;nbsp;for more information about how the devicetree works.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I increase the number of aliases leds in NRF5340-DK via overlay file</title><link>https://devzone.nordicsemi.com/thread/348238?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 10:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b886118-91be-47e6-a80d-76e9b6bc95aa</guid><dc:creator>saeed mahvis</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Actually this is my problem. I want to &amp;amp;led4 node to my device tree via overlay file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I increase the number of aliases leds in NRF5340-DK via overlay file</title><link>https://devzone.nordicsemi.com/thread/348233?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 10:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e81d4400-b939-4e65-b10a-5c9e3d1eee4e</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Is there a &amp;amp;led4 node in your devicetree?&lt;/p&gt;
&lt;p&gt;I believe the default leds on the nRF5340 DK would be labeled led0-3&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I increase the number of aliases leds in NRF5340-DK via overlay file</title><link>https://devzone.nordicsemi.com/thread/348165?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 06:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e32c56f-7a81-4fd9-8200-5700a13acdcf</guid><dc:creator>saeed mahvis</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tried by adding the following code to overlay file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;amp;aliases {&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;led4 = &amp;amp;led4;&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By doing this the NRF connect software couldn&amp;#39;t load NRF connect sdk project and a python error was issued.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1220.error.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I increase the number of aliases leds in NRF5340-DK via overlay file</title><link>https://devzone.nordicsemi.com/thread/347979?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 10:28:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9371f3e8-4ce2-42a1-a5e3-e59a408770ff</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;How to use devicetree overlays is detailed here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/guides/dts/howtos.html#set-devicetree-overlays"&gt;https://docs.zephyrproject.org/latest/guides/dts/howtos.html#set-devicetree-overlays&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>