<?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 to get zephyr to use a new .yaml file and .overlay</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63185/how-to-get-zephyr-to-use-a-new-yaml-file-and-overlay</link><description>I am trying to create a description of my peripherals in the device tree. For example, I want to describe the pins that will control the input type for the ADC. Current input or not. 
 To do this, I created the gpio-sensors.yaml file and put it along</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jul 2020 07:11:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63185/how-to-get-zephyr-to-use-a-new-yaml-file-and-overlay" /><item><title>RE: How to get zephyr to use a new .yaml file and .overlay</title><link>https://devzone.nordicsemi.com/thread/258232?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 07:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d35f2d0c-4186-421f-af17-d0cf1d729ef0</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;Yes indeed, you need to create a directory of the form:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;firmware:
- ncs
- CMakeLists.txt
- nrf9160dk_nrf9160ns.overlay
- prj.conf
- dts/common/
- dts/arm/
- dts/
- dts/bindings/gpio-sensors.yaml
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then it works. I used to try to do so, but apparently I was mistaken somewhere.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what you need when creating a project:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake -B eclipse_project -GNinja -DBOARD=nrf9160dk_nrf9160ns -DDTS_ROOT=dts -G&amp;quot;Eclipse CDT4 - Ninja&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Or in Cmakelist:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(DTS_ROOT &amp;quot;dts&amp;quot;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, I could not specify DTS_ROOT through &amp;quot;west&amp;quot;&lt;br /&gt;this is how I tried:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -d eclipse_project -b nrf9160dk_nrf9160ns -- -DDTS_ROOT=dts -- -G&amp;quot;Eclipse CDT4 - Ninja&amp;quot; &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Something is wrong with the syntax.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Many thanks for the help!&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get zephyr to use a new .yaml file and .overlay</title><link>https://devzone.nordicsemi.com/thread/257611?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 13:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ebb7c5c-de6a-45e9-8cba-d19621ad120e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out the &lt;a href="https://docs.zephyrproject.org/latest/guides/dts/index.html"&gt;DeviceTree Guide in the Zephyr documentation here&lt;/a&gt;&amp;nbsp;for more information on .yaml files. For information on how to do overlays and read them, please check out our &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-3-temporary"&gt;nRFConnect SDK tutorial (Part 3)&lt;/a&gt; which describes that.&lt;/p&gt;
&lt;p&gt;I also suggest checking out the &lt;a href="https://docs.zephyrproject.org/latest/application/index.html#devicetree-definitions"&gt;Zephyr documentation on DeviceTree Definitions&lt;/a&gt; for information on out-of-tree DTS. Please note that the structure proposed here has to be located right after the CMakeLists that describes your project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>