<?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>Thingy 91: Bus Fault when trying to set up I2S on Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59907/thingy-91-bus-fault-when-trying-to-set-up-i2s-on-zephyr</link><description>Hello, 
 I am trying to build a Zephyr application for the Thingy91 which uses the I2S module to receive audio data from an external microphone and sends this data via BLE to a connected device. For the initialization of the I2S module I used the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 13:57:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59907/thingy-91-bus-fault-when-trying-to-set-up-i2s-on-zephyr" /><item><title>RE: Thingy 91: Bus Fault when trying to set up I2S on Zephyr</title><link>https://devzone.nordicsemi.com/thread/243698?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a529b3f-6087-4a27-9c77-ecdbc037e892</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Nils,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am glad to hear it worked. I will have a look at getting the NRF_I2S into the spm module on a more permanent basis, so you do not need to manually edit the file in the future.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91: Bus Fault when trying to set up I2S on Zephyr</title><link>https://devzone.nordicsemi.com/thread/243687?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b99be5cb-9cce-4c59-ac9f-4ebf17141c6a</guid><dc:creator>Nils Ruf</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;H&amp;aring;kon&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;your suggested solution works fine for me.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91: Bus Fault when trying to set up I2S on Zephyr</title><link>https://devzone.nordicsemi.com/thread/243674?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1e8e120-10fe-466b-a18c-e351999183ff</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;Unfortunately, I2S isn&amp;#39;t added as a non-secure peripheral to spm.c.&lt;/p&gt;
&lt;p&gt;In order to run I2S in non-secure, you have to manually forward that peripheral in this array in file spm.c:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/subsys/spm/spm.c#L357"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/subsys/spm/spm.c#L357&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By adding:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PERIPH&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;NRF_I2S&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;, NRF_I2S_S, true),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try this and see if it doesn&amp;#39;t fault now?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>