<?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>Unable to Build DMIC Sample on nRF5340 Audio DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108010/unable-to-build-dmic-sample-on-nrf5340-audio-dk</link><description>I am currently working on a project involving the nRF5340 Audio Development Kit, and I am facing issues while trying to build the DMIC sample provided in the Zephyr RTOS https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/drivers/audio/dmic . </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2024 07:20:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108010/unable-to-build-dmic-sample-on-nrf5340-audio-dk" /><item><title>RE: Unable to Build DMIC Sample on nRF5340 Audio DK</title><link>https://devzone.nordicsemi.com/thread/480588?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 07:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70bb3fdb-0665-4a1f-94e9-06a8f6fbdc06</guid><dc:creator>Anushikha</dc:creator><description>&lt;p&gt;Thank you for your help. I have created this overlay file which works perfectly for nrf5340 audio DK.&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="c_cpp"&gt;&amp;amp;clock {
	hfclkaudio-frequency = &amp;lt;12288000&amp;gt;;
};

&amp;amp;pinctrl {
	pdm0_default_alt: pdm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PDM_CLK, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(PDM_DIN, 0, 13)&amp;gt;;
		};
	};
};

dmic_dev: &amp;amp;pdm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pdm0_default_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;;
	clock-source = &amp;quot;ACLK&amp;quot;;
};
&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;This Dmic sample gives the following output-&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&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/3343.Screenshot-_2800_28_2900_.png" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I am attaching the dmic sample which works for the nrf5340 audio DK.&amp;nbsp;&lt;br /&gt;SDK version- 2.5.2&lt;br /&gt;toolchain version- 2.5.2&lt;/div&gt;
&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3857.dmic.zip"&gt;devzone.nordicsemi.com/.../3857.dmic.zip&lt;/a&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Build DMIC Sample on nRF5340 Audio DK</title><link>https://devzone.nordicsemi.com/thread/467324?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 09:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82fa1847-c7a6-45b7-8328-130e6288a49b</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please see the requirement section:&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/drivers/audio/dmic#:~:text=received%20audio%20data.-,Requirements,-The%20device%20to"&gt;&amp;nbsp;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/drivers/audio/dmic#:~:text=received%20audio%20data.-,Requirements,-The%20device%20to&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Build DMIC Sample on nRF5340 Audio DK</title><link>https://devzone.nordicsemi.com/thread/467307?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 08:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ed7ee3-3694-4985-86c0-55759c9fc2d8</guid><dc:creator>Ladivin</dc:creator><description>&lt;p&gt;Hi Anushikha,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not from Nordic, but I believe I&amp;nbsp;understand the problem so I dare to answer this question.&lt;/p&gt;
&lt;p&gt;This Zephyr sample works out of the box only for nRF&lt;span&gt;52840 DK and nRF5340 DK (i.e. not for nRF5340&amp;nbsp;&lt;strong&gt;Audio&amp;nbsp;&lt;/strong&gt;DK). To make it up and running for the audio kit, you need to create a device tree overlay that specifies `dmic_dev` node. You can have a look into `boards` folder which is present in the sample. There you can get some inspiration how this is done for the two&amp;nbsp;supported devkits.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One more note - the DMIC sample probably won&amp;#39;t work with the microphone which is present on the audio devkit. This microphone is not connected directly to the nRF5340 SoC but it goes through the HW codec and the HW codec is connected via I2S interface. So the `pdm` related API used in the sample couldn&amp;#39;t&amp;nbsp;be used here.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the bottom line is, unless you want to use an external microphone, this sample is not suitable for nRF5340 Audio DK anyway.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope this helps.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And of course, if I&amp;#39;m wrong, Nordic guys, please shout :)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ladivin&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>