<?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>General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93162/general-issues-with-overlays-ie-thingy53-board-selected-after-build-configuration-nrf5340dk-is-this-normal</link><description>I am working through setting up device overlays and am struggling a bit. In some part because I can&amp;#39;t find consistency in naming or location or anything. My goal is to set up i2s and use it. 
 For example I went to kconfig and selected i2s to enable it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Nov 2022 09:08:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93162/general-issues-with-overlays-ie-thingy53-board-selected-after-build-configuration-nrf5340dk-is-this-normal" /><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/394078?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 09:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f4138e-543d-42d4-aaa3-c491e80a9079</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;No worries. I am unfamiliar with I2S specifically so I cannot give&amp;nbsp;any advice about&amp;nbsp;it.&lt;/p&gt;
&lt;p&gt;DeviceTree should be somewhat more straightforward than Kconfig. I hope you have understood it now.&lt;/p&gt;
&lt;p&gt;Kconfig&amp;nbsp;can be complicated and confusing. There is one more resource I would like to recommend:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/cmake/index.html"&gt;Build System (CMake) — Zephyr Project Documentation (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you ever have any further trouble, Kconfig or things just not working like it should, please feel free to open another Q&amp;amp;A. The community and we at Nordic will be sure to help you :D&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/394050?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 06:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bde1d282-9fb6-49cb-b0c8-2359e95786ed</guid><dc:creator>aorion</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Sorry for the delay, just wanted to say thanks for the resources, those are a good reference. Generally I have been going through the zephyr documentation, the sample projects, etc. which has some of the same material but is, like you said, not all for the same board, and some of it was outdated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason I posted originally is because I was (still am...) seeing legitimately confusing results from setup and kconfig operations with regards to what boards are referenced. Since the actual issues were unrelated and the project still seems to be compiling and running OK, I verified the answer and will continue to&amp;nbsp;reference those pages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;-Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/392704?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 20:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e81a13e7-d5f6-4b07-b603-2209a59eb5d7</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
[quote user="aorion"]I can understand the frustration. I feel like I am working from basic principles here[/quote]
&lt;p&gt;Hey, don&amp;#39;t feel bad. I&amp;nbsp;too&amp;nbsp;couldn&amp;#39;t&amp;nbsp;make any heads or tails out of this before I&amp;nbsp;ask people who know. From what people tell me, a lot of them also share the experience. It is quite a complicated thing to get into.&lt;/p&gt;
&lt;p&gt;I should have told you that we have this &lt;a href="https://academy.nordicsemi.com/"&gt;DevAcademy site&lt;/a&gt; in my earlier replies. Sorry about that.&lt;br /&gt;This site&amp;nbsp;has a tutorial course to get you accustomed to the nRF Connect SDK. Here is a link to the that course:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
[quote user="aorion"]&lt;p&gt;I actually re-created the project several times. I only see the build (and boards) folder after creating a build config. For example my i2s_example project, I have not created a build config since I just wanted the reference. It looks like this&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1185.pastedimage1666630424524v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I am using PC, Windows 10, and I installed everything using the getting started guide (ie, Toolchain -&amp;gt; Install -&amp;gt; Run VS Code). VS Code is 1.72.2. I am running the peripheral_uart sample using the nrf5340 DK as a base. &lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, I cannot reproduce your observation with both NCS v1.9.1 and NCS v2.1.0.&lt;br /&gt;For both versions, I see the &lt;em&gt;&amp;quot;boards&amp;quot;&lt;/em&gt;&amp;nbsp;folder&amp;nbsp;appear right away, containing the overlay files for the Thingy53.&lt;br /&gt;This is also the expectation, as &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.9.2/samples/bluetooth/peripheral_uart/boards"&gt;it is how the sample is setup&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What version are you using?&lt;br /&gt;Also, please check your &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&amp;lt;Build Config Folder&amp;gt;/CMakeCache.txt&lt;/em&gt;&lt;/span&gt;, search for &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;em&gt;DTC_OVERLAY_FILE&lt;/em&gt;&lt;/span&gt;, and see if your nrf5340&amp;nbsp;DK build configuration&amp;nbsp;actually picks up the Thingy53 overlay file like you fear.&lt;/p&gt;
[quote user="aorion"](which btw, i2s_example is not the same, i2s_example is apparently outdated in several respects)[/quote]
&lt;p&gt;I can&amp;#39;t comment on this. I initially looked at the I2S Example as well, but upon seeing just short note referring to the LiteX VexRiscv I moved away from it, since I feel it might not be meant for nRF DKs.&lt;/p&gt;
[quote user="aorion"]selecting I2S bus in kconfig and rebuilding does not add CONFIG_I2S to my prj.conf[/quote]
&lt;p&gt;Have you clicked on the &lt;em&gt;&amp;quot;Save to File&amp;quot;&lt;/em&gt; button?&lt;br /&gt;Clicking &lt;em&gt;&amp;quot;Save&amp;quot;&lt;/em&gt; only&amp;nbsp;save the change to the &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;&amp;lt;Build Config Folder&amp;gt;/zephyr/.config&lt;/span&gt;&lt;/em&gt; file. It will still affect your final build output, just not the prj.conf file. &lt;br /&gt;To save the changes to prj.conf to use across all build configurations, you need to use the &amp;quot;Save to File&amp;quot; button.&lt;/p&gt;
[quote user="aorion"]In addition I needed to add CONFIG_I2S_NRFX as well. Once I did that, it compiled just fine.[/quote]
&lt;p&gt;Are we still talking about the&amp;nbsp;I2S Echo sample, unmodified?&amp;nbsp;Or did you add some custom behavior? I compiled the I2S Echo sample just fine using the configuration as is.&lt;/p&gt;
[quote user="aorion"]In addition the device tree binding is outdated.&amp;nbsp;[/quote]
&lt;p&gt;Could you please elaborate on this?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;All in all, I feel like we are moving in a good direction, yes?&lt;br /&gt;You might feel like saving time by just pushing forward now, but I still recommend taking a step back and go over&amp;nbsp;these&amp;nbsp;resources first.&lt;br /&gt;- &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;DevAcademy course mentioned above&lt;/a&gt;&amp;nbsp;for some warm-up.&amp;nbsp;&lt;br /&gt;- &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf53.html"&gt;Working with nRF53 articles&lt;/a&gt;. The nRF5340 is a dual core chip and as such&amp;nbsp;it&amp;nbsp;is somewhat more complex for development.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/392440?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 14:42:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a06c223-c1e8-4536-9702-61d7da3d6ff1</guid><dc:creator>aorion</dc:creator><description>&lt;p&gt;Hi Hieu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using PC, Windows 10, and I installed everything using the getting started guide (ie, Toolchain -&amp;gt; Install -&amp;gt; Run VS Code). VS Code is 1.72.2. I am running the peripheral_uart sample using the nrf5340 DK as a base.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did go add the i2s echo example from the zephyr SDK (which btw, i2s_example is not the same, i2s_example is apparently outdated in several respects). After adding the same build configuration I get the expected overlay files for nrf5340dk. I don&amp;#39;t see what I have done differently between the two. Only peripheral_uart sets up the thingy53 overlays instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666708887513v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;The checkboxes you mentioned are probably from the GUI Kconfig in nRF Connect VS Code Extension? The GUI provides a ... GUI to configure Kconfig. It also provides some conveniences like for example: checking dependencies.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I can understand the frustration. I feel like I am working from basic principles here. Click a checkbox, and the options in the project should be enabled. What I don&amp;#39;t know is how to actually confirm that these things are enabled. Knowing what you mentioned about prj.conf and CONFIG_I2S=y, I can confirm that&amp;nbsp;&lt;strong&gt;selecting I2S bus in kconfig and rebuilding does not add CONFIG_I2S to my prj.conf.&lt;/strong&gt; In addition I needed to add CONFIG_I2S_NRFX as well. Once I did that, it compiled just fine. In addition the device tree binding is outdated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using these troubleshooting steps I was able to get the project compiled and flashed. I am still working through some issues (ie, I only get one transmission and the data out doesn&amp;#39;t reflect the buffer) but it&amp;#39;s a start.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/392335?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 10:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d22aa1a-d502-4cc7-8807-6d8522b3db6b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
[quote user="aorion"]I actually re-created the project several times. I only see the build (and boards) folder after creating a build config. For example my i2s_example project, I have not created a build config since I just wanted the reference. It looks like this[/quote]
&lt;p&gt;Alright... That is indeed very strange. Could you please&amp;nbsp;tell me what sample that is so I can take a look at it?&lt;/p&gt;
&lt;p&gt;Also,&amp;nbsp;how is your current development environment setup? PC OS? What method did you use to install everything?&lt;/p&gt;
[quote user="aorion"]Am I going to run into issues with running a thingy53 DTS on a nrf53DK? i don&amp;#39;t notice any issues so far, is it just a naming issue?&amp;nbsp;[/quote]
&lt;p&gt;Yes and no depends on what you do with it. The&amp;nbsp;chip is wired differently on the board, so I can&amp;#39;t predict what issue you might run into.&lt;/p&gt;
[quote user="aorion"]For example as I understand, I should not be able to use RTT on Thingy53 but it is working fine.&amp;nbsp;[/quote]
&lt;p&gt;The problem with RTT and Thingy53 is probably just that the Thingy53 does not physically have a debugger. If you provide an external debugger to it, RTT will work just fine. That is&amp;nbsp;the reason RTT comes up. So, your setup might still be for the Thingy.&lt;/p&gt;
[quote user="aorion"]It looks like it&amp;#39;s added via the device overlay, which is fine, now that I know that the i2s checkbox in kconfig is not inconsistent.&amp;nbsp;[/quote][quote user="aorion"]From further reading it sounds like at one point kconfig was the way to do it. I was expecting something similar to rpi-config or makemenu (linux) to enable an already configured driver. It looks like it&amp;#39;s added via the device overlay, which is fine,[/quote]
&lt;p&gt;I would like to elaborate a little since there seem to still be some misunderstanding here. (Sorry if that is not the case)&lt;/p&gt;
&lt;p&gt;The checkboxes you mentioned are probably from the GUI Kconfig in nRF Connect VS Code Extension? The GUI provides a ... GUI to configure Kconfig. It also provides some conveniences like for example: checking dependencies.&lt;br /&gt;When an option is greyed out, it usually means that a dependency is not met. However, CONFIG_I2S should not have any dependency. I will look into it when I try to follow your step.&lt;br /&gt;Ultimately, Kconfig will save the changes to .conf files in the project. Most of the times this is proj.conf..Next, Kconfig&amp;nbsp;is used to configure mostly software related feature. For example, to enable GPIO features you almost always need CONFIG_GPIO=y. Only then can you call functions like&amp;nbsp;gpio_pin_toggle();&lt;/p&gt;
&lt;p&gt;Devicetree on the other hand&amp;nbsp;describe the hardware availability. For example, to use UART1 peripheral, you need to set it with status=&amp;quot;okay&amp;quot; in DTS or overlay files. Otherwise, UART1 related software functions, including Kconfig, would not work or would result in a build error.&lt;/p&gt;
&lt;p&gt;With that, we arrive at:&lt;/p&gt;
[quote user="aorion"]I am not able to see status: &amp;quot;okay&amp;quot; in my zephyr.dts (and the binding fails).[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Not sure what you meant by the binding fails. Have you set status to &amp;quot;okay&amp;quot; in your overlay file?&lt;/p&gt;
&lt;p&gt;I have not used I2S myself, but from my experience with other peripherals, you probably will need to enable it both in Devicetree (via overlays or custom&amp;nbsp;board files) &lt;em&gt;&lt;strong&gt;and&lt;/strong&gt;&lt;/em&gt; Kconfig.&lt;/p&gt;
&lt;p&gt;You can refer to this sample to see how I2S can be enabled:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/i2s/echo/README.html"&gt;I2S Echo Sample — Zephyr Project Documentation (nordicsemi.com)&lt;br /&gt;&lt;/a&gt;While you try out this sample, please also&amp;nbsp;check if you still have a boards folder generated with all the thingy53 overlays like you were having.&lt;/p&gt;
&lt;p&gt;In the sample, you can see I2S is enabled in the overlay file as followed:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// The original sample did not turn off SPI4, which is configured 
// to the same pins i2s is being configured to.
// Therefore, here spi4 is explicitly turned off to avoid warnings
&amp;amp;spi4 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;clock {
	hfclkaudio-frequency = &amp;lt;11289600&amp;gt;;
};

i2s_rxtx: &amp;amp;i2s0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2s0_default_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;;
	clock-source = &amp;quot;ACLK&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That will result in the final zephyr.dts having this line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;			i2s0: i2s_rxtx: i2s@28000 {
				compatible = &amp;quot;nordic,nrf-i2s&amp;quot;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				reg = &amp;lt; 0x28000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0x28 0x1 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				pinctrl-0 = &amp;lt; &amp;amp;i2s0_default_alt &amp;gt;;
				pinctrl-names = &amp;quot;default&amp;quot;;
				clock-source = &amp;quot;ACLK&amp;quot;;
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And you can see the I2S&amp;nbsp;software driver/library is enabled in Kconfig in proj.conf as followed:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_I2S=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Once again, you need both&amp;nbsp;Devicetree configuration and Kconfig for things to work. In your case, you need to both update overlay and Kconfig. Please try out the sample to see it working first.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/392237?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 17:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2592216b-81eb-46e4-8120-ebf2705a2810</guid><dc:creator>aorion</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you for the quick response.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;You should be able to observe that when you first create the application folder, those overlays are already there, even before you created any build configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually re-created the project several times. I only see the build (and boards) folder after creating a build config. For example my i2s_example project, I have not created a build config since I just wanted the reference. It looks like this&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666630424524v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;Please note that some samples are also designed only for certain boards; and using a different one&amp;nbsp;can sometime require major tweaking. You could read the sample&amp;#39;s&amp;nbsp;README to check which board support it.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf5340dk_nrf5340_cpuapp is allowed under platform_allow. My concern was that it allows this but then all of the board files are listed as thingy53 after I build and the boards folder is created. Is this a bug? Am I going to run into issues with running a thingy53 DTS on a nrf53DK? i don&amp;#39;t notice any issues so far, is it just a naming issue? For example as I understand, I should not be able to use RTT on Thingy53 but it is working fine.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666630663016v3.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;gt;&amp;nbsp;&lt;span&gt;Next, I observe that you are also confused why Kconfig is not updated when you update overlay. I believe that&amp;nbsp;this is because you misunderstood Kconfig and device tree. Kconfig and device tree are not the same.&amp;nbsp;You can read this article for more info:&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/dt-vs-kconfig.html"&gt;Devicetree versus Kconfig &amp;mdash; Zephyr Project Documentation (nordicsemi.com)&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I think I understand this now. From further reading it sounds like at one point kconfig was the way to do it. I was expecting something similar to rpi-config or makemenu (linux) to enable an already configured driver. It looks like it&amp;#39;s added via the device overlay, which is fine, now that I know that the i2s checkbox in kconfig is not inconsistent.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I did go through all of the documentation above and where I linked in the original reply. After providing the pinctrl and checking my overlays against the nrf_audio one, I am not able to see status: &amp;quot;okay&amp;quot; in my zephyr.dts (and the binding fails). Do you have any documents on how to troubleshoot this? The &amp;quot;Troubleshooting device trees&amp;quot; doc from Zephyr looks like it is more oriented toward device driver writers, not consumers. I am not modifying the driver I just need to see why it was not included (ie, am I missing config fields?...). I am in the process of reading through&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/intro.html#dt-writing-property-values"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/intro.html&lt;/a&gt;&amp;nbsp;- however, a lot of this is pertaining to generated files, which I am not to that point yet. It&amp;#39;s blocked from enabling I2S by something, where can I find information on what it needs to actually enable the device? For example, a log or a warning message or a checklist of criteria or anything?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks,&lt;/div&gt;
&lt;div&gt;-Alex&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/392089?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 10:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bea09c-d3a5-4f54-934f-f3c9332f2ace</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi aorion,&lt;/p&gt;
&lt;p&gt;What you described is abnormal, but it comes from a perfectly normal confusion&amp;nbsp;which people new to Zephyr and/or nRF Connect SDK (NCS) would have&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;. I&amp;nbsp;had&amp;nbsp;been through the same experience.&lt;/p&gt;
[quote user=""] went to check where to stick this and found that my boards/ directory was populated entirely with incorrect board names, ie&amp;nbsp;thingy53_nrf5340_cpuapp_ns.overlay, when I selected nrf5340dk_nrf5340_app as the board in the build configuration.[/quote]
&lt;p&gt;I assume you created an application based on some samples.&amp;nbsp;On some of the samples in NCS,&amp;nbsp;overlay files are required for some boards, so the samples include&amp;nbsp;such overlays&amp;nbsp;from the beginning. &lt;br /&gt;You should be able to observe that when you first create the application folder, those overlays are already there, even before you created any build configuration. They come into effect when you run the build configuration for their target board.&lt;/p&gt;
&lt;p&gt;Please note that some samples are also designed only for certain boards; and using a different one&amp;nbsp;can sometime require major tweaking. You could read the sample&amp;#39;s&amp;nbsp;README to check which board support it.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Next, I observe that you are also confused why Kconfig is not updated when you update overlay. I believe that&amp;nbsp;this is because you misunderstood Kconfig and device tree. Kconfig and device tree are not the same.&amp;nbsp;You can read this article for more info:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/dt-vs-kconfig.html"&gt;Devicetree versus Kconfig — Zephyr Project Documentation (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;May I suggest that you give that a read, and reevaluate your current situation to see if things make sense now, then come back here if you still have any questions?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General issues with overlays (ie, thingy53 board selected after build configuration nrf5340dk, is this normal?)</title><link>https://devzone.nordicsemi.com/thread/392011?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 05:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a26a93bd-e38c-427f-a238-661828313a1d</guid><dc:creator>aorion</dc:creator><description>&lt;p&gt;Just to follow up as I have been doing additional debugging...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still not sure why the nrf_audio doesn&amp;#39;t have i2s enabled via kconfig. Looking for comprehension there.&lt;/p&gt;
&lt;p&gt;What did help was I found this page -&amp;gt;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/hardware/pinctrl/index.html#state-model"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/hardware/pinctrl/index.html#state-model&lt;/a&gt;&amp;nbsp;which elaborates on the new pinctrl method.&amp;nbsp;In addition the project includes app.overlay which is a default, so the specific board name doesn&amp;#39;t matter. The pinctrl can be created and assigned like the below&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;pinctrl&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-pinctrl&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;i2s0_default:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;i2s0_default&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;phandle&lt;/span&gt;&lt;span&gt; = &amp;lt; &lt;/span&gt;&lt;span&gt;0x9&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;group1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;psels&lt;/span&gt;&lt;span&gt; = &amp;lt;&lt;/span&gt;&lt;span&gt;NRF_PSEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;I2S_SCK_M&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;)&amp;gt;, &amp;lt;&lt;/span&gt;&lt;span&gt;NRF_PSEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;I2S_LRCK_M&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;6&lt;/span&gt;&lt;span&gt;)&amp;gt;, &amp;lt;&lt;/span&gt;&lt;span&gt;NRF_PSEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;I2S_SDOUT&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;)&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;nordic,drive-mode&lt;/span&gt;&lt;span&gt; = &amp;lt; &lt;/span&gt;&lt;span&gt;NRF_PULL_UP&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;i2s0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-0&lt;/span&gt;&lt;span&gt; = &amp;lt; &amp;amp;&lt;/span&gt;&lt;span&gt;i2s0_default&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-names&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;&amp;quot;default&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;This builds but I am still unable to get status: &amp;quot;okay&amp;quot;, it&amp;#39;s still disabled. I don&amp;#39;t see any logs or anything and am not sure what happens in the backend to make this work. If there is a misconfiguration I would have expected some kind of warning or error pointing out what is missing. As of right now I know that&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;1. The i2s device is enabled in kconfig (which, does that even matter?...)&lt;/div&gt;
&lt;div&gt;2. The i2s device is in the zephyr.dts and matches the nrf_audio&amp;#39;s zephyr.dts&lt;/div&gt;
&lt;div&gt;3. The i2s device&amp;#39;s pinctrl are in the dts as modified. In the same spot as the nrf_audio but with different pins.&lt;/div&gt;
&lt;div&gt;4. The name of the device in the .c where I use&amp;nbsp;device_get_binding matches the name of the i2s device (i2s0).&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Besides that, unless there is some dependency on another module that needs to be also included but is not, I am not sure where else to look, without any sort of error log.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>