<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88624/problems-with-nrf5340-audio-example</link><description>When I use two nrf5340 audio DK to test the LE audio demo, the handset side always crashes. Especially when I move the DK that is used as the handset.I think that incomplete data reception due to compromised communication can cause a crash problem. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 15 Jun 2022 10:09:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88624/problems-with-nrf5340-audio-example" /><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/372524?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 10:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a65b38-b833-420c-9eb9-a35ee608de35</guid><dc:creator>user87869</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello again,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;ve discussed this with some colleagues now and the behavior shown in your log is something we have seen before when using the SBC codec. In essence, it is caused by sw_codec_select not handling the SBC&amp;#39;s output properly when a bad frame occurs.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;As a quick fix for this I suggest that you just remove the ERR_CHK_MSG on line 815 in this case - at worst this could sometimes produces audiable artifacts when a bad frame occurs with the SBC codec, since ctrl_blk.decoded_data contains the data from the last frame/package, which means that the same frame will be played twice. It is not ideal fix, but it is better than the device resetting at least, for the time being.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Please try this, and let me know if it resolves the issue.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/372160?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd1a947-807c-4fc3-88ad-214edc1b06ee</guid><dc:creator>user87869</dc:creator><description>&lt;p&gt;Thank you for providing the diff output and the full log, I will discuss this with some colleagues internally and get back to you as soon as I have an update.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/371027?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 06:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be53ea3-ac70-482d-bb39-84e031216de6</guid><dc:creator>user107450</dc:creator><description>&lt;p&gt;&lt;span&gt;All my changes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;chen@ubuntu:~/ncs/nrf$ git diff
diff --git a/applications/nrf5340_audio/overlay-gateway.conf b/applications/nrf5340_audio/overlay-gateway.conf
index 251eea3d7..734572e58 100644
--- a/applications/nrf5340_audio/overlay-gateway.conf
+++ b/applications/nrf5340_audio/overlay-gateway.conf
@@ -41,5 +41,5 @@ CONFIG_BT_MAX_CONN=2
 CONFIG_BT_ISO_MAX_CHAN=2
 CONFIG_BT_MAX_PAIRED=2
 
-CONFIG_LC3_ENC_CHAN_MAX=2
-CONFIG_LC3_DEC_CHAN_MAX=1
+# CONFIG_LC3_ENC_CHAN_MAX=2
+# CONFIG_LC3_DEC_CHAN_MAX=1
diff --git a/applications/nrf5340_audio/overlay-headset.conf b/applications/nrf5340_audio/overlay-headset.conf
index abff0b37c..1bc0df0ea 100644
--- a/applications/nrf5340_audio/overlay-headset.conf
+++ b/applications/nrf5340_audio/overlay-headset.conf
@@ -19,5 +19,5 @@ CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
 CONFIG_BT_MAX_CONN=1
 CONFIG_BT_ISO_MAX_CHAN=1
 
-CONFIG_LC3_ENC_CHAN_MAX=1
-CONFIG_LC3_DEC_CHAN_MAX=1
+# CONFIG_LC3_ENC_CHAN_MAX=1
+# CONFIG_LC3_DEC_CHAN_MAX=1
diff --git a/applications/nrf5340_audio/prj.conf b/applications/nrf5340_audio/prj.conf
index d11231555..9c40681a9 100644
--- a/applications/nrf5340_audio/prj.conf
+++ b/applications/nrf5340_audio/prj.conf
@@ -40,7 +40,7 @@ CONFIG_BT_PER_ADV=y
 CONFIG_BT_ISO_UNICAST=y
 CONFIG_BT_ISO_BROADCASTER=y
 CONFIG_BT_ISO_SYNC_RECEIVER=y
-
+CONFIG_SW_CODEC_SBC=y
 # Temporary, enable the following to meet BT_ISO dependencies
 CONFIG_BT_OBSERVER=y
 CONFIG_BT_PERIPHERAL=y
(END)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Full log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.0.99-ncs1  ***
HL [00:00:00.250,885] &amp;lt;inf&amp;gt; audio_sync_timer: Audio sync timer initialized
HL [00:00:00.251,068] &amp;lt;dbg&amp;gt; nrf5340_
                                    HL [00:00:00.251,129] &amp;lt;dbg&amp;gt; nrf5340_audio_dk_nrf5340_cpuapp: remoteproc_mgr_boot: Network MCU released.
HL [00:00:00.255,889] &amp;lt;inf&amp;gt; fw_info: 
         nRF5340 Audio nRF5340 Audio DK cpuapp                      
         FW Version: 0.5.99                         
         Cmake run : Mon Jun 06 17:36:32 2022
HL [00:00:00.255,889] &amp;lt;inf&amp;gt; fw_info: ------- DEBUG BUILD -------
HL [00:00:00.255,889] &amp;lt;inf&amp;gt; fw_info: 
         HEADSET left device
HL [00:00:00.266,479] &amp;lt;inf&amp;gt; board_version: Compatible board/HW version found: 1.0.0
HL [00:00:00.330,902] &amp;lt;wrn&amp;gt; bt_hci_core: Controller to host flow control not supported
HL [00:00:00.458,831] &amp;lt;inf&amp;gt; ble: MAC: D9:D0:F0:B6:A9:84 (random)
HL [00:00:00.459,045] &amp;lt;inf&amp;gt; ble: Controller version: 3269
HL [00:00:00.537,902] &amp;lt;wrHL [00:00:06.640,838] &amp;lt;inf&amp;gt; streamctrl: BLE evt connected
HL [00:00:06.640,869] &amp;lt;inf&amp;gt; streamctrl: BLE evt link ready
HL [00:00:15.631,134] &amp;lt;inf&amp;gt; audio_datapath: Drft comp state: CALIB
HL [00:00:15.632,110] &amp;lt;wrn&amp;gt; audio_datapath: Data received, total underruns: 9
HL [00:00:15.731,140comp state: LOCKED
HL [00:00:16.200,531] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: MEAS
HL [00:00:16.310,516] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: WAIT
HL [0atapath: Pres comp state: INIT
HL [00:00:16.380,523] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: MEAS
HL [00:00:16.490,539] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: LOCKED
HL [00:00:21.500,762] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:30.311,187] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:31.641,235] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:31.741,241] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:33.061,309] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:36.111,450] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:40.931,671] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:40.981,689] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sd_us
HL [00:00:41.061,676] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:41.471,710] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:41.981,719] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:42.291,748] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:46.491,943] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:47.091,979] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL [00:00:47.124,481] &amp;lt;wrn&amp;gt; audio_datapath: Invalid sdu_ref_us delta (9983) - Estimating sdu_ref_us
HL PCM samples dropped
HL [00:00:47.124,542] &amp;lt;err&amp;gt; audio_datapath: Decoded audio has wrong size
HL [00:00:47.124,542] &amp;lt;err&amp;gt; audio_datapath: ERR_CHK Err_code: [-140] @ line: 833
HL [00:00:47.124,572] &amp;lt;err&amp;gt; os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
HL [00:00:47.124,572] &amp;lt;err&amp;gt; os: r3/a4:  0x20001dd0 r12/ip:  0x00000002 r14/lr:  0x000177ed
HL [00:00:47.124,572] &amp;lt;err&amp;gt; os:  xpsr:  0x41000000
HL [00:00:47.124,572] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
HL [00:00:47.124,603] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
HL [00:00:47.124,603] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
HL [00:00:47.124,603] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0xffffffff  s[14]:  0x00000000  s[15]:  0x47.124,603] &amp;lt;err&amp;gt; os: fpscr:  0xffffffff
HL [00:00:47.124,633] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00006104
HL [00:00:47.124,6: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
HL [00:00:47.124,633] &amp;lt;err&amp;gt; os: Current thread: 0x20001648 (AUDIO DATAPATH)
HL [00:00:47.124,664] &amp;lt;err&amp;gt; error_handler: Caught system error -- reason 3. Entering infinite loop&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/371018?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 06:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb2fa77-0c9b-4669-8758-ba301062b22b</guid><dc:creator>user87869</dc:creator><description>&lt;p&gt;Could you provide the full log from the headset side?&lt;br /&gt;Could you also confirm whether you have any many other modifications to the application other than the BIS configuration + 3 changes for the SBC mentioned earlier?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/371017?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 06:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092e4e96-a43e-48e6-9555-18f4442ea13d</guid><dc:creator>user107450</dc:creator><description>&lt;div class="textarea-bg-text"&gt;Hi&amp;nbsp;Karl,&lt;/div&gt;
&lt;div class="textarea-bg-text" id="textarea-bg-text"&gt;I have deleted these two, otherwise I cannot compile&amp;nbsp;code.Obviously,the problems I mentioned occurred during&amp;nbsp;the DK&amp;nbsp;is running.&lt;/div&gt;
&lt;div class="textarea-bg-text"&gt;&lt;/div&gt;
&lt;div class="textarea-bg-text"&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;Chen&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/371014?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 05:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d9e5fd1-29d7-41c2-bd07-797ec3390466</guid><dc:creator>user87869</dc:creator><description>&lt;p&gt;As a side-note: I highly recommend that you make use of the LC3 codec for your evaluation and development wherever possible - it is really a major improvement over the SBC! :)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nrf5340 audio example</title><link>https://test-devzone.nordicsemi.com/thread/371013?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 05:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662e3428-5a7c-444a-8644-22fd1dfb9fb2</guid><dc:creator>user87869</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;In addition to setting&amp;nbsp;&lt;span&gt;CONFIG_TRANSPORT_BIS=y in the prj.conf you will need to&amp;nbsp;&lt;/span&gt;go into &lt;span&gt;overlay-headset.conf and overlay-gateway.conf and delete these two:&lt;/span&gt;&lt;br /&gt; &lt;span&gt;CONFIG_LC3_ENC_CHAN_MAX=2&lt;/span&gt;&lt;br /&gt; &lt;span&gt;CONFIG_LC3_DEC_CHAN_MAX=1.&lt;br /&gt;&lt;br /&gt;Please do this, and let me know if it resolves your issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>