<?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>nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112979/nrf5340-audio-dks-losing-sync-in-external-i2s-loopback</link><description>I am trying to send / receive bi-directional audio between two nRF5340 Audio DKs with an external I2S bus on the gateway DK. I am modifying the nrf5340_audio example from SDK V2.6.0. 
 I have added CONFIG_STREAM_BIDIRECTIONAL=y and CONFIG_AUDIO_SOURCE_I2S</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jul 2024 07:30:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112979/nrf5340-audio-dks-losing-sync-in-external-i2s-loopback" /><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/494282?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 07:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f5ae850-7c56-478c-bb58-0fbe5199dca0</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Happy to hear that you were able to resolve it!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll mark this case as verified and since I&amp;#39;ll be out of office for holidays this week I would recommend that you create a new case and refer to this one in case you have any additional follow ups after I leave so that you can get a faster follow up from us! :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/494248?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 21:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350161fb-8cfb-4a75-abcc-495542371e3d</guid><dc:creator>GeneF</dc:creator><description>&lt;p&gt;Sorry - please ignore CMake Error above.&amp;nbsp; New App.&amp;nbsp; I forgot to add build configuration.&lt;/p&gt;
&lt;p&gt;nrf5340 Audio example builds, programs and runs.&lt;/p&gt;
&lt;p&gt;Thanks for all your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/494218?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 15:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c133a99-aa71-4db6-bd28-a6bc2d79c633</guid><dc:creator>GeneF</dc:creator><description>&lt;p&gt;Yes, I have made a clean copy of the nrf5340_audio example from SDK 2.7.0 in a new directory.&lt;/p&gt;
&lt;p&gt;After modifying buildprog.py I get a new error message from sysbuild:&lt;/p&gt;
&lt;p&gt;CMake Error at C:/nordicsemi/v2.7.0/zephyr/cmake/modules/boards.cmake:320 (message):&lt;br /&gt;&amp;nbsp; Board qualifiers `/nrf5340/cpuapp--sysbuild` for board `nrf5340_audio_dk`&lt;br /&gt;&amp;nbsp; not found.&amp;nbsp; Please specify a valid board target.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Valid board targets for nrf5340_audio_dk are:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; nrf5340_audio_dk/nrf5340/cpuapp&lt;br /&gt;&lt;br /&gt;&amp;nbsp; nrf5340_audio_dk/nrf5340/cpuapp/ns&lt;br /&gt;&lt;br /&gt;&amp;nbsp; nrf5340_audio_dk/nrf5340/cpunet&lt;/p&gt;
&lt;p&gt;How do I add board targets for sysbuild?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/494193?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 14:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512094ec-aaf2-493b-bc96-806c501a5eeb</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Could you clarify if you&amp;#39;ve copied the nrf5340 audio project to another path when using 2.7.0?&lt;/p&gt;
&lt;p&gt;And yes, apparently there is an issue related to sysbuild, there&amp;#39;s a PR to fix it here:&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrf/pull/16449" href="https://github.com/nrfconnect/sdk-nrf/pull/16449" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/pull/16449&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/493996?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 21:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afaffc02-d891-4cd0-baad-6107e69b3c45</guid><dc:creator>GeneF</dc:creator><description>&lt;p&gt;Thank you very much for your assistance.&lt;/p&gt;
&lt;p&gt;Audio synchronization appears to work when running external I2S with debug code &amp;amp; logging.&amp;nbsp; It just doesn&amp;#39;t quite sync when running external I2S with release mode code.&lt;/p&gt;
&lt;p&gt;I would like to try the nrf5340_audio example from SDK v2.7.0.&amp;nbsp; However buildprog.py in 2.7.0 fails to program the DK - error message is &amp;quot;NET core hex not found.&amp;nbsp; Built as APP core child image.&amp;nbsp; I suspect this has to do with sysbuild changes.&amp;nbsp; How do I build / program the DK with the new version of the nrf5340 Audio App?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/493860?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 10:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d9cc36-2ec4-490e-82fd-a1b0dc38e32d</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;In addition, do you see any changes when when upgrading to NCS v2.7.0? We&amp;#39;ve done some improvements for the sync on unicast scenario.&lt;/p&gt;
&lt;p&gt;And to emphasize the logs, it would be great to get the application log so we can see what&amp;#39;s happening.&lt;/p&gt;
&lt;p&gt;Could you verify if you set the nRF5340 as I2S master?&lt;/p&gt;
&lt;p&gt;The sync is mechanism is relying on&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The I2S block completed callback which triggered every 10ms&lt;/li&gt;
&lt;li&gt;The timestamp from controller&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So if the I2S is still working as expected, then there should be no issue on the sync mech. If I2S is not working as expected however..&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/493827?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 08:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:230ce62e-5db8-40af-b490-bebe53376c45</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted, thank you for checking and elaborating. I&amp;#39;ll bring this up to the discussion with my colleagues.&lt;/p&gt;
&lt;p&gt;In the meanwhile do you have any device logs that could indicate if things are running as they should or not?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/493715?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 19:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7742adc3-998f-441b-91c8-b8d8ae1d372b</guid><dc:creator>GeneF</dc:creator><description>&lt;p&gt;Additional information:&lt;/p&gt;
&lt;p&gt;When I initialize the hardware codec on the gateway the external I2S audio is fine &amp;amp; led 2 on the gateway lights up.&amp;nbsp; If I don&amp;#39;t initialize the hardware codec on the gateway the external I2S audio has clicks in it (about 4 per second) and led 2 on the gateway does not light.&amp;nbsp; Still need help figuring out why.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/493652?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 13:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:402003b8-6a07-4644-a30e-eb7de797f7b0</guid><dc:creator>GeneF</dc:creator><description>&lt;p&gt;Thanks for the reply. &amp;nbsp; I am running external I2S bus and not using the hardware codec on the unicast_client.&amp;nbsp; My guess is that frequency drift compensation stops working when I disable the hardware codec on the unicast_client.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio DKs losing sync in external I2S loopback</title><link>https://devzone.nordicsemi.com/thread/493648?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 13:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0319bf6b-c9cb-45d7-a5da-a3302173f3ab</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will have to discuss this with the Audio team, but in the meanwhile have you seen this part of the documentation?&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/firmware_architecture.html#synchronization_module_overview"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/firmware_architecture.html#synchronization_module_overview&lt;/a&gt;&amp;nbsp;I think this should answer most of your questions, but let me know if things are still unclear after this&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>