<?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>Enabling PDM on nrf9160 in non-secure (NS) mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73981/enabling-pdm-on-nrf9160-in-non-secure-ns-mode</link><description>Greetings, 
 we are writing a library for nrf9160dk, which is using PDM to read out microphone data from an extension module. 
 we are using NCS v1.5.0 
 
 To summarize the code, the initialization looks something like this: 
 
 The code then crashes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 11:17:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73981/enabling-pdm-on-nrf9160-in-non-secure-ns-mode" /><item><title>RE: Enabling PDM on nrf9160 in non-secure (NS) mode</title><link>https://devzone.nordicsemi.com/thread/305498?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 11:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42dc7acd-c69c-4f48-b020-70dd32f948d0</guid><dc:creator>Tjaz</dc:creator><description>&lt;p&gt;Ok,&lt;/p&gt;
&lt;p&gt;thanks for the update. We will probably wait for ncs 1.5.1 then.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Tjaž&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling PDM on nrf9160 in non-secure (NS) mode</title><link>https://devzone.nordicsemi.com/thread/305014?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 08:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75f3b63-d99c-4a9e-b742-5e93c33556fc</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;Thanks for reaching out. As you pointed out this is clearly an issue on our side and I&amp;#39;ve issued a &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/4331"&gt;Pull Request with a fix&lt;/a&gt;. However, until the next release of NCS it will have to be patched in, which I agree isn&amp;#39;t ideal.&lt;br /&gt;&lt;br /&gt;If you want to do this from the application you must add a custom Secure Partition Manager to the project and enable the PDM there. We have a &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application"&gt;blog post&lt;/a&gt; describing the procedure for adding a custom SPM, and for enabling the peripheral you can use the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/d7170608283ddfb0f3ebcc874c9a6d5460422dbc/subsys/spm/spm.c#L255"&gt;&lt;strong&gt;config_peripheral&lt;/strong&gt;&lt;/a&gt; function of the SPM subsystem for reference. Apologies for the inconvenience.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>