<?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>nRF52840 PDM microphone causes interrupt issue – code runs only when PDM-related lines are commented</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126925/nrf52840-pdm-microphone-causes-interrupt-issue-code-runs-only-when-pdm-related-lines-are-commented</link><description>Hello Nordic Community, 
 I am working with the nRF5340 SoC as the master and trying to configure a PDM microphone . I have two related queries regarding PDM/DMIC operation. 
 
 Situation 1: 
 I am working with the nRF52840 SoC and trying to capture audio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Feb 2026 12:01:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126925/nrf52840-pdm-microphone-causes-interrupt-issue-code-runs-only-when-pdm-related-lines-are-commented" /><item><title>RE: nRF52840 PDM microphone causes interrupt issue – code runs only when PDM-related lines are commented</title><link>https://devzone.nordicsemi.com/thread/560901?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2026 12:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b50509-9c93-4c61-ae49-6d9f8f763a0e</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;h3&gt;&lt;strong&gt;Situation 1:&amp;nbsp;&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;I am working with the &lt;strong&gt;nRF52840 SoC&lt;/strong&gt; and trying to capture audio using a &lt;strong&gt;PDM microphone&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;When I run my application &lt;strong&gt;with all code enabled&lt;/strong&gt;, throwing error, i have pasted the error in text file .&lt;/p&gt;[/quote]
&lt;p&gt;This line from your build log points to the issue while building:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/Users/2768/untitled/src/main.c:52: undefined reference to `nrfx_pdm_irq_handler&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The build system expects an instance to be specified. I resolved the build error by specifying&amp;nbsp;nrfx_pdm_0_irq_handler on line #52 in main.c&lt;/p&gt;
[quote user=""]&lt;h3&gt;&lt;strong&gt;Situation 2:&amp;nbsp;&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;However, when I &lt;strong&gt;comment out lines 50–57 and line 61 in &lt;code&gt;main.c&lt;/code&gt;&lt;/strong&gt;, the code:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Runs without errors&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Flashes successfully on the nRF52840&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;But &lt;strong&gt;no &lt;code&gt;printf&lt;/code&gt; output appears on the serial terminal&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;In the prj.conf printf is configured to appear on RTT and not the serial terminal. Do you also get no RTT output?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDM microphone causes interrupt issue – code runs only when PDM-related lines are commented</title><link>https://devzone.nordicsemi.com/thread/560826?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2026 15:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91d08707-e70f-4e85-b4fd-668b122c3892</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just want to let you know that I have picked up this case and I&amp;#39;ll share some feedback tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>