<?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>Problem adding I2S to nRF connect SDK - DTS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76218/problem-adding-i2s-to-nrf-connect-sdk---dts</link><description>Hi there, 
 First of all; I have experience in Keil but I am new to SEGGER and Zephyr. 
 Rebuilding our project in Segger using the new nRF Connect SDK I am stuck at adding I2S to an example. 
 I started with the Nordic NUS (BLE UART) example, which runs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jun 2021 08:31:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76218/problem-adding-i2s-to-nrf-connect-sdk---dts" /><item><title>RE: Problem adding I2S to nRF connect SDK - DTS</title><link>https://devzone.nordicsemi.com/thread/315785?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 08:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76f559ed-4c3f-4ca5-a7a0-375cbbfce381</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="HyperS"]&amp;lt;EDIT 17-06-2021&amp;gt; &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;m_blocks_transferred&lt;/span&gt; is never increased. I added an increase but I&amp;#39;m not sure if it was placed in the right place. I added: &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;m_blocks_transferred++;&lt;/span&gt; after:&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp;prepare_tx_data(mp_block_to_fill);.&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Ooops! I cut away a bit too much when I ported the project, my apologies!&lt;/p&gt;
&lt;p&gt;Your proposed fix is good.&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: Problem adding I2S to nRF connect SDK - DTS</title><link>https://devzone.nordicsemi.com/thread/315677?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 14:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffe3e59-5625-4ce8-a88e-489d2f1df3e3</guid><dc:creator>HyperS</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thanks for your answer!&lt;br /&gt;It seems that I finally got your port to work, I will check with a Logic Analyzer tomorrow.&lt;/p&gt;
&lt;p&gt;However, it seems to hang on:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; do {
			k_cpu_idle();

            if (mp_block_to_fill)
            { 
                printk(&amp;quot;1\n&amp;quot;);
                prepare_tx_data(mp_block_to_fill);
                mp_block_to_fill = NULL;
            }
            printk(&amp;quot;2\n&amp;quot;);
        } while (m_blocks_transferred &amp;lt; BLOCKS_TO_TRANSFER);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The debugger prints 1,2,1,2 forever it seems.&lt;/p&gt;
&lt;p&gt;Does it need a slave just as I2C to function?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sander&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;EDIT 17-06-2021&amp;gt; &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;m_blocks_transferred&lt;/span&gt; is never increased. I added an increase but I&amp;#39;m not sure if it was placed in the right place. I added: &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;m_blocks_transferred++;&lt;/span&gt; after:&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp;prepare_tx_data(mp_block_to_fill);.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem adding I2S to nRF connect SDK - DTS</title><link>https://devzone.nordicsemi.com/thread/314730?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 13:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f9db533-af19-43cc-a06e-6f664edbdd3a</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, the i2s isn&amp;#39;t ported to zephyr yet (no &amp;quot;nrf&amp;quot;&amp;nbsp;port here: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/i2s"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/i2s&lt;/a&gt;), so you have to use the nrfx driver directly.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a sample available here,&amp;nbsp;but this is tailored towards nrf5340:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/siguhe/NCS_I2S_nrfx_driver_example"&gt;https://github.com/siguhe/NCS_I2S_nrfx_driver_example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I have also ported a sample&amp;nbsp;from&amp;nbsp;nRF5 sdk:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_nrf5_5F00_i2s_5F00_sample.zip"&gt;devzone.nordicsemi.com/.../ncs_5F00_nrf5_5F00_i2s_5F00_sample.zip&lt;/a&gt;&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: Problem adding I2S to nRF connect SDK - DTS</title><link>https://devzone.nordicsemi.com/thread/314638?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 09:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8a0d21c-12b9-4982-af95-c993b60d2f2f</guid><dc:creator>HyperS</dc:creator><description>&lt;p&gt;Addition:&lt;br /&gt;Using: SEGGER Embedded Studio - Release 5.34a&amp;nbsp; Build 2021011401.44914&lt;br /&gt;nRF Connect SDK V1.5.1&lt;br /&gt;Example used:&amp;nbsp;ncs\v1.5.1\nrf\samples\bluetooth\peripheral_uart&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>