<?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>Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50656/using-pdm-mic-on-nrf9160dk</link><description>I was wondering if there were any good examples of how to get a PDM device (in this case a microphone) working on the nRF9160DK. I&amp;#39;ve read parts of the datasheet and I&amp;#39;ve been able to find the nrfx_pdm driver in the SDK but am unaware what pins to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Apr 2023 12:09:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50656/using-pdm-mic-on-nrf9160dk" /><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/422506?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 12:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19f41d0-3b8d-4044-86b8-20dc27cd4868</guid><dc:creator>FinKM</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp;I&amp;#39;m looking at getting a PDM mic working with an nRF9160, but on NCS 2.3/TFM 1.6/Zephyr 3.2.99.&lt;br /&gt;&lt;br /&gt;Is there an up-to-date reference on how to do this, and furthermore is it possible to use the Zephyr DMIC library on-top of the Nrfx PDM driver?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204798?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 13:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c82dab91-fccd-4392-b9c1-feca96957346</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Compiles properly now, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204715?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 11:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:876b8844-a13e-4154-9ac0-6b44e8175ecb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This isn&amp;#39;t straight-forward due to the PDM not being natively supported.&lt;/p&gt;
&lt;p&gt;1. First thing is to add the sources in zephyr/ext/hal/nordic/CMakeLists.txt:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_sources_ifdef(CONFIG_NRFX_PDM nrfx/drivers/src/nrfx_pdm.c)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. And you also need to add these two lines to zephyr/ext/hal/nordic/Kconfig:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config NRFX_PDM
    bool&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. Now we start on the application side. you need to append this to your prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_COMPILER_OPT=&amp;quot;-DNRF_PDM=NRF_PDM_NS -DNRFX_PDM_ENABLED=1&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will enable the module, and define NRF_PDM to NRF_PDM_NS.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. Next up is selecting the NRFX_PDM in Kconfig. This is a symbol that needs to be selected by a module, so let&amp;#39;s add one to your application.&lt;/p&gt;
&lt;p&gt;Create the file &amp;quot;Kconfig&amp;quot; in nrf/samples/nrf9160/my_sample/ and paste into the file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mainmenu &amp;quot;PDM test&amp;quot;

config FORCE_PDM
	bool &amp;quot;Test to force PDM&amp;quot;
	select NRFX_PDM
    default y

source &amp;quot;$ZEPHYR_BASE/Kconfig.zephyr&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can name the config what-ever you&amp;#39;d like, in this case it is &amp;quot;FORCE_PDM&amp;quot;, and it&amp;#39;s default y (so no need to manually add it to your prj.conf in this case).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try these steps and see if it compiles properly now?&lt;/p&gt;
&lt;p&gt;Sorry for the comprehensive workaround and the inconvenience.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;*edit* in order to use the&amp;nbsp;non-blocking (ie: the handler function), you have to add this to your main to forward the interrupt vector:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ISR_DIRECT_DECLARE(pdm_isr_handler)
{
	nrfx_pdm_irq_handler();
	ISR_DIRECT_PM(); /* PM done after servicing interrupt for best latency
			  */

	return 1; /* We should check if scheduling decision should be made */
}

void main(void)
{
	IRQ_DIRECT_CONNECT(PDM_IRQn, 0,
			   pdm_isr_handler, 0);
	/* Rest of main */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204528?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 13:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d311eea4-63ed-4a6e-af9f-5d4bbf05362e</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;so I added these lines to zephyr\ext\hal\nordic\CMakeLists.txt&lt;/p&gt;
&lt;p&gt;zephyr_sources_ifdef(CONFIG_NRFX_PDM nrfx/drivers/src/nrfx_pdm.c)&lt;br /&gt; zephyr_sources_ifdef(CONFIG_NRFX_PDM_NS nrfx/drivers/src/nrfx_pdm_ns.c)&lt;/p&gt;
&lt;p&gt;I then re-built the project and tried to build the solution, and still got the same undefined reference errors. Did I add the correct lines, or was there something I missed?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204523?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 13:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a44a35f-ad7c-41c3-8650-45b43248ba89</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;that makes sense, I&amp;#39;ll check on that. One thing I find odd though, how am I able to use the nrfx_pdm_enable_check() function if it&amp;#39;s part of the same header file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204479?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 11:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6763f96b-c6e8-4ada-aae4-375e666a0324</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just thought of one obvious thing. Since PDM is not supported yet, nrfx_pdm.c is not even included in&amp;nbsp;zephyr\ext\hal\nordic\CMakeLists.txt, so it is never compiled. So it is no wonder you get the undefined reference. You need to add it to the list of tiles in&amp;nbsp;&lt;span&gt;zephyr\ext\hal\nordic\CMakeLists.txt.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204322?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 13:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fef50bb-a193-4a8b-9e93-a382a116640e</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;So, uh, I forgot to uncomment out my buffer_set function, they&amp;#39;re both still undefined reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204320?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 13:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d7ea01-d141-4450-9bec-23a4b7835ab5</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Awesome, so I tried your fix, and am no longer getting a bus fault error. Also for some reason my undefined reference to buffer set is gone, but my undefined nrfx_pdm_init is still there&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204311?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 13:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e73fedb-2a93-436a-8ab5-e2327cf7c5c5</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Would that work to make it non-secure? Most the other ones I can see have an NS at the end whereas this has PDM_S at the end. Is that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204201?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 07:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e441eea-0e13-4bfc-95d7-1dcab82fc243</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This seems to be because of the Secure Partition Manager (SPM) is not configured to make the PDM peripheral non-secure. You can fix it by adding PDM to the periph_cfg list in &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/v1.0.0/subsys/spm/spm.c"&gt;spm.c&lt;/a&gt;. You can add the following line in the list:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;PERIPH(&amp;quot;NRF_PDM&amp;quot;, NRF_PDM_S, 1),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204157?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 17:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfe82166-fd93-44f4-9175-01c8be661a21</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;So I changed up my code to test if the PDM was enabled using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfx_pdm_enable_check()&lt;/p&gt;
&lt;p&gt;shockingly it did not give me an undefined reference error, however when I tried to run the code it did give me this error&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/bus_5F00_fault.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;here is my edited code&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5557.main.txt"&gt;devzone.nordicsemi.com/.../5557.main.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am very confused&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204137?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 15:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a240bab4-a3e5-4dd8-b456-d19143f34963</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;okay, so I tried adding&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_PDM_ENABLED&lt;br /&gt;#warning NRFX_PDM_ENABLED is undefined&lt;br /&gt;#else&lt;br /&gt;#if !NRFX_PDM_ENABLED&lt;br /&gt;#warning NRFX_PDM_ENABLED is defined but set to 0&lt;br /&gt;#endif&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;to nrfx_pdm_ns.h, nrf_pdm_ns.h both to no results&lt;/p&gt;
&lt;p&gt;however, once I added it to nrfx.h I get this warning&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/warning_5F00_glue.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;so I then proceeded to add this to both nrfx_glue.h and nrfx_glue.c&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_PDM_ENABLED&lt;br /&gt;#define NRFX_PDM_ENABLED 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;But even after adding that, I still get the same exact errors and the same exact warnings&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204117?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e0d9f6a-1b1d-47ad-9556-b55012ab3dda</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;yeah, that&amp;#39;s what I was afraid of. Thanks, I&amp;#39;ll try and track down the problem w/ warnings like you suggested.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204115?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a652d3-cabc-46b8-8cab-f512a486e726</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;It could be empty. There is a configuration hierarchy, so unless you need to change some of the default configurations (such as in&amp;nbsp;zephyr\boards\arm\nrf9160_pca10090\nrf9160_pca10090ns_defconfig), you don&amp;#39;t need anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204108?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87a7b943-558d-4ce6-b2a5-28b7f16a8c84</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;right, but disregarding anything pdm related like pdm_gain and all that, what SHOULD be in there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204107?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988f0cdd-2617-4e05-b1d8-3d7c76bc00d4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not sure you need anything PDM related. Since the PDM driver is anyway not fully integrated with Zephyr you have to use the nrfx driver directly. As mentionned earlier PDM is even missing in the device tree (.dts), so you have to tweak it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204106?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976e7333-4f76-40d7-a85b-a04447300ad4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I was thinking to gradually check the files&amp;nbsp;in the include hierarchy described in the previous post, between&amp;nbsp;nrfx_pdm.c and&amp;nbsp;nrfx_config_nrf9160.h. At which point is&amp;nbsp;NRFX_PDM_ENABLED no longer defined or no longer set to 1? It could be done with something like the following (untested):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifndef NRFX_PDM_ENABLED
    #warning NRFX_PDM_ENABLED is undefined
#else
    #if !NRFX_PDM_ENABLED
        #warning NRFX_PDM_ENABLED is defined but set to 0
    #endif
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204102?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a57c76d0-61a7-479b-b973-0a49a3cbabfd</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Einar, a possibly stupid question but what SHOULD my .conf file have in it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204091?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 13:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9b399e-93cc-4fad-a899-3233034d6706</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;I&amp;#39;ll try that, and yes, to my knowledge I&amp;#39;m using 1.0.0, but out of curiosity how would I check that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/204062?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 12:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe983300-2679-4678-9557-4ef12185d820</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, I see.&amp;nbsp;There no reason to define&amp;nbsp;NRFX_PDM_ENABLED in the main.c file.&lt;/p&gt;
&lt;p&gt;Did you put it in nrfx_config_nrf9160? The file holding the implementation of nrfx_pdm_buffer_set, nrfx_pdm.c, includes nrfx.h, which includes&amp;nbsp;nrfx_config.h which includes&amp;nbsp;nrfx_config_nrf9160.h, which is where we set the configuration. So it should be included in that case.&lt;/p&gt;
&lt;p&gt;If it still does not work, then perhaps you can print some warnings or similar using, for instance, #warning to track where the definition is set to which value, and where it &amp;quot;gets lost&amp;quot;. I have not spotted it, at least.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the way, are you using NCS 1.0.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/203911?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 21:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7131e20d-1471-432f-a5a7-efba027e7858</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;i should add, I&amp;#39;ve also tried include &amp;lt;nrfx_pdm.h&amp;gt; as well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/203909?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 20:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41816561-ce35-423b-92fa-fa6e50263cb8</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;So, I tried adding&amp;nbsp; your undefine and then define into my main.c file, but that didn&amp;#39;t help matters. I&amp;#39;m still getting the same undefined reference error.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m including my file, just in case there is a glaring error I&amp;#39;m missing&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8473.main.txt"&gt;devzone.nordicsemi.com/.../8473.main.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/203353?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 13:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7267450-e8f9-46da-80c7-b5d6c519b64d</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Thanks Einar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll give it a try and report back&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/203316?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 12:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c58f930-6a0c-44c4-aa17-1fb13490bf2a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry, it seems I have played too little with nRF Connect SDK. Setting&amp;nbsp;NRFX_PDM_ENABLED in&amp;nbsp;nrfx_config_nrf9160 does not have effect if it is defined somewhere else. Can you try to set it to 1 in prj.conf also/instead? You could also try to replace:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifndef NRFX_PDM_ENABLED
#define NRFX_PDM_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#undef NRFX_PDM_ENABLED
#define NRFX_PDM_ENABLED 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that PDM is not properly integrated with Zephyr as of now. It is missing in&amp;nbsp;the device tree, so there are no register definitions etc. If you need PDM now you have to add it yourself, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM Mic on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/203105?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 13:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c6d54b-5ff1-4b57-935f-cb302ac6ea95</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;So I did what you suggested&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pdm_5F00_enable.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;but when still when I re-load and try to build the program it still gives me the same error.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/still_5F00_errors.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m more than a little lost here. Any other help is appreciated.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>