When compiling the rNF5340 Audio sample project the sound that comes out is glitchy and after a short while the gateway crashes. I have three rNF5340 Audio DK running in the gateway, left and right setup. I use "python3 buildprog.py -c both -b debug -d both --pristine -p --recover" command line to compile and run the scipts to the DK's.
just as a note i haven't edited any of the C i just created a new application, choose rNF5340 Audio, added config and changed the devices.json file.
my os is macOs.
devices.json
[ { "nrf5340_audio_dk_snr": 1050192156, "nrf5340_audio_dk_dev": "headset", "channel": "left" }, { "nrf5340_audio_dk_snr": 1050187039, "nrf5340_audio_dk_dev": "gateway", "channel": "NA" }, { "nrf5340_audio_dk_snr": 1050120160, "nrf5340_audio_dk_dev": "headset", "channel": "right" } ]
i also got some debug messages from each DK from the VCOM0 port. i hope it is useful.
Gate way:
GW [00:00:13.222,045] <inf> cis_gateway: Stream 0x2000a8c0 started
GW [00:00:29.619,995] <wrn> bt_hci_core: opcode 0x206f status 0x0c
GW [00:00:29.620,391] <wrn> bt_hci_core: opcode 0x206f status 0x12
GW [00:00:29.620,391] <inf> cis_gateway: Stream 0x2000a8c0 stopped
GW [00:00:29.620,941] <inf> cis_gateway: Disconnected: F9:A7:1F:B6:19:18 (random) (reason 0x08)
GW [00:00:29.621,795] <inf> cis_gateway: Scanning successfully started
GW [00:00:29.666,748] <wrn> bt_hci_core: opcode 0x206f status 0x0c
GW [00:00:29.667,175] <wrn> bt_hci_core: opcode 0x206f status 0x12
GW [00:00:29.667,175] <inf> cis_gateway: Stream 0x2000a89c stopped
GW [00:00:29.667,724] <inf> cis_gateway: Disconnected: F3:45:79:A4:82:32 (random) (reason 0x08)
GW [00:00:29.667,846] <wrn> cis_gateway: Scanning failed to start: -120
GW [00:00:29.670,257] <wrn> streamctrl: Problem with sending LE audio data, ret: -140
GW [00:00:30.487,365] <inf> cis_gateway: Connected: F3:45:79:A4:82:32 (random)
GW [00:00:32.989,471] <err> bt_unicast_client: Failed to subscribe to location: -120
GW [00:00:33.189,331] <inf> cis_gateway: Scanning successfully started
GW [00:00:33.441,375] <inf> cis_gateway: Connected: F9:A7:1F:B6:19:18 (random)
GW [00:00:33.938,659] <wrn> cis_gateway: Failed to discover sink: -12
GW [00:00:33.988,739] <err> cis_gateway: Discovery failed: 14
GW [00:01:34.090,393] <inf> cis_gateway: Disconnected: F3:45:79:A4:82:32 (random) (reason 0x08)
GW [00:01:34.091,094] <inf> cis_gateway: Scanning successfully started
GW [00:01:35.421,264] <inf> cis_gateway: Connected: F3:45:79:A4:82:32 (random)
GW [00:01:36.967,956] <err> cis_gateway: Discovery failed: 14
GW [00:01:37.967,926] <inf> cis_gateway: Scanning successfully started
GW [00:01:39.067,169] <err> cis_gateway: Discovery failed: 14
GW [00:01:42.167,266] <inf> cis_gateway: Stream 0x2000a89c started
GW [00:01:42.175,292] <wrn> bt_hci_core: opcode 0x2061 status 0x0c
GW [00:01:48.377,990] <wrn> audio_system: Failed to get last filled block
GW [00:01:48.378,021] <err> os: ***** BUS FAULT *****
GW [00:01:48.378,021] <err> os: Precise data bus error
GW [00:01:48.378,021] <err> os: BFAR Address: 0x0
GW [00:01:48.378,051] <err> os: r0/a1: 0x20000238 r1/a2: 0x2000ee3c r2/a3: 0x20003b44
GW [00:01:48.378,051] <err> os: r3/a4: 0x00000000 r12/ip: 0xffffffff r14/lr: 0x000494a3
GW [00:01:48.378,051] <err> os: xpsr: 0x21100000
GW [00:01:48.378,082] <err> os: s[ 0]: 0x00000000 s[ 1]: 0x00000000 s[ 2]: 0x00000000 s[ 3]: 0x00000000
GW [00:01:48.378,082] <err> os: s[ 4]: 0x00000000 s[ 5]: 0x00000000 s[ 6]: 0x00000000 s[ 7]: 0x00000000
GW [00:01:48.378,082] <err> os: s[ 8]: 0x00000000 s[ 9]: 0x00000000 s[10]: 0x00000000 s[11]: 0x00000000
GW [00:01:48.378,082] <err> os: s[12]: 0x00000000 s[13]: 0x00000000 s[14]: 0x00000000 s[15]: 0x00000000
GW [00:01:48.378,112] <err> os: fpscr: 0x00000000
GW [00:01:48.378,112] <err> os: Faulting instruction address (r15/pc): 0x000494aa
GW [00:01:48.378,112] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
GW [00:01:48.378,143] <err> os: Current thread: 0x20001750 (ENCODER)
GW [00:01:48.378,143] <err> error_handler: Caught system error -- reason 0. Entering infinite loop
Left:
HL [00:00:00.259,124] <inf> fw_info: ------- DEBUG BUILD -------
HL [00:00:00.259,155] <inf> fw_info:
HEADSET left device
HL [00:00:00.269,744] <inf> board_version: Compatible board/HW version found: 1.0.0
HL [00:00:02.304,382] <wrn> ble: Failed to create ID
HL [00:00:02.307,556] <inf> fs_nvs: 6 Sectors of 4096 bytes
HL [00:00:02.307,586] <inf> fs_nvs: alloc wra: 0, f20
HL [00:00:02.307,586] <inf> fs_nvs: data wra: 0, 160
HL [00:00:02.317,687] <wrn> bt_hci_core: Controller to host flow control not supported
HL [00:00:02.320,770] <inf> bt_hci_core: No ID address. App must call settings_load()
HL [00:00:02.320,861] <inf> ble: MAC: 00:00:00:00:00:00 (public)
HL [00:00:02.321,411] <inf> ble: Controller version: 3303
HL [00:00:02.446,929] <inf> cis_headset: Direct advertising to C2:D1:E7:AB:50:8D (random) started
HL [00:00:04.445,648] <inf> cis_headset: Connected: C2:D1:E7:AB:50:8D (random)
HL [00:00:08.446,960] <inf> cis_headset: Codec config for LC3:
HL [00:00:08.446,990] <inf> cis_headset: Frequency: 48000 Hz
HL [00:00:08.446,990] <inf> cis_headset: Frame Duration: 10000 us
HL [00:00:08.446,990] <inf> cis_headset: Channel allocation: 0x1
HL [00:00:08.447,021] <inf> cis_headset: Octets per frame: 120 (96000 kbps)
HL [00:00:08.447,021] <inf> cis_headset: Frames per SDU: 1
HL [00:00:08.763,397] <wrn> audio_datapath: I2S RX overrun. Single msg
HL [00:00:10.278,411] <inf> audio_datapath: Drft comp state: CALIB
HL [00:00:10.279,388] <wrn> audio_datapath: Data received, total underruns: 1523
HL [00:00:10.320,404] <wrn> audio_datapath: Data received, total underruns: 1524
Right:
HEADSET right device
HR [00:00:00.269,775] <inf> board_version: Compatible board/HW version found: 1.0.0
HR [00:00:02.304,412] <wrn> ble: Failed to create ID
HR [00:00:02.307,586] <inf> fs_nvs: 6 Sectors of 4096 bytes
HR [00:00:02.307,586] <inf> fs_nvs: alloc wra: 0, f10
HR [00:00:02.307,586] <inf> fs_nvs: data wra: 0, 180
HR [00:00:02.317,779] <wrn> bt_hci_core: Controller to host flow control not supported
HR [00:00:02.320,922] <inf> bt_hci_core: No ID address. App must call settings_load()
HR [00:00:02.320,983] <inf> ble: MAC: 00:00:00:00:00:00 (public)
HR [00:00:02.321,563] <inf> ble: Controller version: 3303
HR [00:00:02.447,052] <inf> cis_headset: Direct advertising to C2:D1:E7:AB:50:8D (random) started
HR [00:00:05.392,456] <inf> cis_headset: Connected: C2:D1:E7:AB:50:8D (random)
HR [00:00:09.493,774] <inf> cis_headset: Codec config for LC3:
HR [00:00:09.493,804] <inf> cis_headset: Frequency: 48000 Hz
HR [00:00:09.493,804] <inf> cis_headset: Frame Duration: 10000 us
HR [00:00:09.493,804] <inf> cis_headset: Channel allocation: 0x1
HR [00:00:09.493,804] <inf> cis_headset: Octets per frame: 120 (96000 kbps)
HR [00:00:09.493,835] <inf> cis_headset: Frames per SDU: 1
HR [00:00:09.810,211] <wrn> audio_datapath: I2S RX overrun. Single msg
HR [00:00:11.318,237] <inf> audio_datapath: Drft comp state: CALIB
HR [00:00:11.319,213] <wrn> audio_datapath: Data received, total underruns: 1516
HR [00:00:11.330,200] <wrn> audio_datapath: Data received, total underruns: 1517
HR [00:00:11.347,473] <inf> audio_datapath: sdu_ref_us not from consecutive frames
HR [00:00:11.350,219] <wrn> audio_datapath: Data received, total underruns: 1527
HR [00:00:11.407,501] <inf> audio_datapath: sdu_ref_us not from consecutive frames
HR [00:00:11.410,217] <wrn> audio_datapath: Data received, total underruns: 1557
HR [00:00:11.418,243] <inf> audio_datapath: Drft comp state: OFFSET
HR [00:00:11.557,525] <inf> audio_datapath: sdu_ref_us not from consecutive frames
HR [00:00:11.560,363] <wrn> audio_datapath: Data received, total underruns: 1597
HR [00:00:11.707,519] <inf> audio_datapath: sdu_ref_us not from consecutive frames
HR [00:00:11.709,625] <wrn> audio_datapath: Data received, total underruns: 1636
HR [00:00:11.847,503] <inf> audio_datapath: sdu_ref_us not from consecutive frames
HR [00:00:11.849,670] <wrn> audio_datapath: Data received, total underruns: 1676
HR [00:00:11.874,725] <inf> audio_datapath: Drft comp state: LOCKED
HR [00:00:11.877,532] <inf> audio_datapath: Pres comp state: MEAS
HR [00:00:11.997,528] <inf> audio_datapath: sdu_ref_us not from consecutive frames
HR [00:00:11.997,528] <inf> audio_datapath: Pres comp state: WAIT
HR [00:00:11.999,694] <wrn> audio_datapath: Data received, total underruns: 1716
Thanks in advanced!