<?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>i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120699/i2s-on-nrf5340---feeding-from-fifo</link><description>Hi there. 
 I am trying to implement a 16-bit, 32kHz, 2 channel i2s interface which is being fed by a FIFO (the final source of this FIFO will be a DAB/FM radio module but could be any audio source). I am running on an nrf5340dk. I am witnessing the i2s</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 May 2025 12:32:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120699/i2s-on-nrf5340---feeding-from-fifo" /><item><title>RE: i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/thread/534107?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 12:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f46081-134a-45ef-ba0d-1400f6bcb609</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Finlay,&lt;/p&gt;
&lt;p&gt;Any update on this?&lt;/p&gt;
[quote user="finsmy"]On a more general note. Is the FIFO the best choice for what I&amp;#39;m trying to do here or is there a slightly more clever way to asynchronously pass audio samples from an arbitrary source to the i2s buffer?[/quote]
&lt;p&gt;Sorry about the wait regarding this point, I assume you still need this question addressed?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/thread/533997?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 20:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ef529c-341b-433f-97d9-0b738318b91f</guid><dc:creator>finsmy</dc:creator><description>&lt;p&gt;This was indeed the trick. Thank you very much. Sorry for taking so long to confirm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/thread/532130?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2025 15:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf49c143-f067-4a68-846d-52d0eb84a6f0</guid><dc:creator>finsmy</dc:creator><description>&lt;p&gt;This is a good point. I am away from the hardware at the moment but I&amp;#39;ll try that at the earliest possible opportunity and get back to you.&lt;/p&gt;
&lt;p&gt;On a more general note. Is the FIFO the best choice for what I&amp;#39;m trying to do here or is there a slightly more clever way to asynchronously pass audio samples from an arbitrary source to the i2s buffer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/thread/531943?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 06:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f1c3513-0195-402f-bac0-c82951246b48</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Ah did not see the logs in my first read of this ticket.&lt;/p&gt;
&lt;p&gt;What happens if you use K_NO_WAIT instead of K_FOREVER in k_fifo_get()?&lt;/p&gt;
&lt;p&gt;From &lt;a href="https://docs.zephyrproject.org/latest/kernel/services/data_passing/fifos.html"&gt;Zephyr FIFO docs&lt;/a&gt;, it looks like the FIFO will only wait if it is empty. Do you agree?&lt;br /&gt;&amp;quot;A data item may be &lt;strong&gt;removed&lt;/strong&gt; from a FIFO by a thread. If the FIFO’s queue is empty a thread may choose to wait for a data item to be given.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/thread/531905?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 20:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82309caa-6a79-42d7-9bd2-4ef579d4ab4c</guid><dc:creator>finsmy</dc:creator><description>&lt;p&gt;The log shown above is the exact output and the version of the SDK used is 2.9.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2s on NRF5340 - Feeding from FIFO</title><link>https://devzone.nordicsemi.com/thread/531824?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 11:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:313e2e98-86ab-4053-b8be-69b585612136</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user=""]that it is not being supplied data fast enough (based on log messages) [/quote]
&lt;p&gt;Can you quote the logs exactly?&lt;/p&gt;
&lt;p&gt;What version of the SDK do you use?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>