zephyr: Bluetooth: LE: Audio: kernel panic with Bap Unicast Server sample when music stream is started (board nRF-5340-Audio-DK)
Describe the bug
When my phone ( samsung zflip 4 ) start the music with the “bap unicast server” a kernel panic is trigger after 1/2 sec
To Reproduce
Steps to reproduce the behavior:
- edit samples/bluetooth/bap_unicast_server/prj.conf and add:
#### Custom cfg ####
CONFIG_LOG=y
# CONFIG_BT_LOG_LEVEL_DBG=y
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_PRINTK=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BUFFER_SIZE=4096
# samsung zflip 4 send metadata supperior to default value (4)
## <wrn> bt_ascs: Not enough space for Codec Config Metadata: 7 > 4
## <err> bt_ascs: Enable rejected: err -12, code 13, reason 0
CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=15
CONFIG_BT_AUDIO_CODEC_CAP_MAX_METADATA_SIZE=15
- west build -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild samples/bluetooth/bap_unicast_server/
- west flash
- use a phone with BLE audio support then bound + stream a music
Expected behavior
No kernel panic and stream proceeded
Impact
Logs and console output
Logs:
SEGGER J-Link V7.94b - Real time terminal output
SEGGER J-Link (unknown) V1.0, SN=1050177497
Process: JLinkGDBServerCLExe
*** Booting Zephyr OS build v3.7.0 ***
[00:00:00.382,904] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.382,934] <inf> bt_hci_core: HW Variant: nRF53x (0x0003)
[00:00:00.382,965] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 3.7 Build 0
[00:00:00.384,765] <inf> bt_hci_core: Identity: E8:19:DF:C5:36:52 (random)
[00:00:00.384,796] <inf> bt_hci_core: HCI: version 5.4 (0x0d) revision 0x0000, manufacturer 0x05f1
[00:00:00.384,826] <inf> bt_hci_core: LMP: version 5.4 (0x0d) subver 0xffff
Bluetooth initialized
Location successfully set
Supported contexts successfully set
Available contexts successfully set
Advertising successfully started
Connected: 7E:E0:A3:C8:1F:4F (random)
ASE Codec Config: conn 0x200022e8 ep 0x200029ac dir 1
codec_cfg 0x06 cid 0x0000 vid 0x0000 count 19
data: type 0x01 value_len 1
08
data: type 0x02 value_len 1
01
data: type 0x03 value_len 4
00000000
data: type 0x04 value_len 2
7800
data: type 0x05 value_len 1
01
Frequency: 48000 Hz
Frame Duration: 10000 us
Channel allocation: 0x0
Octets per frame: 120 (negative means value not pressent)
Frames per SDU: 1
ASE Codec Config stream 0x20005498
QoS: stream 0x20005498 qos 0x20007988
QoS: interval 10000 framing 0x00 phy 0x02 sdu 120 rtn 2 latency 10 pd 40000
Enable: stream 0x20005498 meta_len 7
RX stream 0x20005498 len 0
RX stream 0x20005498 len 0
RX stream 0x20005498 len 0
RX stream 0x20005498 len 0
Release: stream 0x20005498
Audio Stream 0x20005498 stopped with reason 0x13
ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:410
Controller unresponsive, command opcode 0x0406 timeout with err -11
[00:01:17.525,970] <err> os: r0/a1: 0x00000003 r1/a2: 0x00000000 r2/a3: 0x00000002
[00:01:17.526,000] <err> os: r3/a4: 0x00000003 r12/ip: 0x00000010 r14/lr: 0x00005d9f
[00:01:17.526,000] <err> os: xpsr: 0x01000000
[00:01:17.526,000] <err> os: s[ 0]: 0x200098d0 s[ 1]: 0x00000003 s[ 2]: 0x20009880 s[ 3]: 0x20009880
[00:01:17.526,031] <err> os: s[ 4]: 0x00000000 s[ 5]: 0x00000001 s[ 6]: 0x20009890 s[ 7]: 0x20009890
[00:01:17.526,031] <err> os: s[ 8]: 0x00000006 s[ 9]: 0x20002608 s[10]: 0x20005498 s[11]: 0x20005cb0
[00:01:17.526,062] <err> os: s[12]: 0x200098d0 s[13]: 0xffffffff s[14]: 0xffffffff s[15]: 0x00000000
[00:01:17.526,062] <err> os: fpscr: 0x00000000
[00:01:17.526,062] <err> os: Faulting instruction address (r15/pc): 0x00005dae
[00:01:17.526,092] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[00:01:17.526,123] <err> os: Current thread: 0x20002f28 (unknown)
[00:01:18.045,745] <err> os: Halting system
advertising debug logs bounding debug logs stream started debug logs
Environment (please complete the following information):
- Zephyr 3.7 (LTS)
- board nRF-5340-Audio-DK
Additional context
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (9 by maintainers)
logs from ttyACM0 :
logs from ttyACMC1