CIS connect fail after download image with CONFIG_STREAM_BIDIRECTIONAL=y in prj.conf file on nRF5340 DK audio board

Hi Nordic Team,

The default stream direction is undirectional, so I add CONFIG_STREAM_BIDIRECTIONAL=y in prj.conf, then  use "python buildprog.py -c both -b debug -d both -p -f" to compile and download image.but it will fail to create CIS. here is the log below, it's USAGE FAULT error. 

How can I avoid this happen? Thanks.

[2022/12/8 14:07:34] *** Booting Zephyr OS build v3.2.99-ncs1-rc1 ***
[2022/12/8 14:07:34] HL [00:00:00.259,643] <inf> fw_info: 
[2022/12/8 14:07:34] 	 nRF5340 Audio nRF5340 Audio DK cpuapp 	       
[2022/12/8 14:07:34] 	 NCS base version: 2.2.0-rc1 		       
[2022/12/8 14:07:34] 	 Cmake run : Thu Dec 08 14:02:45 2022
[2022/12/8 14:07:34] HL [00:00:00.259,674] <inf> fw_info: ------- DEBUG BUILD -------
[2022/12/8 14:07:34] HL [00:00:00.259,674] <inf> fw_info: HEADSET left device
[2022/12/8 14:07:34] HL [00:00:00.270,294] <inf> board_version: Compatible board/HW version found: 1.0.0
[2022/12/8 14:07:37] HL [00:00:02.318,298] <wrn> bt_hci_core: Controller to host flow control not supported
[2022/12/8 14:07:37] HL [00:00:02.321,441] <inf> bt_hci_core: No ID address. App must call settings_load()
[2022/12/8 14:07:37] HL [00:00:02.321,502] <inf> ble: MAC: 00:00:00:00:00:00 (public)
[2022/12/8 14:07:37] HL [00:00:02.322,082] <inf> ble: Controller version: 3310
[2022/12/8 14:07:37] HL [00:00:02.444,610] <inf> cis_headset: Set direct advertising to F4:91:40:A0:AF:D6 (random)
[2022/12/8 14:07:37] HL [00:00:02.447,479] <inf> cis_headset: Advertising successfully started
[2022/12/8 14:09:06] *** Booting Zephyr OS build v3.2.99-ncs1-rc1 ***
[2022/12/8 14:09:06] HL [00:00:00.259,704] <inf> fw_info: 
[2022/12/8 14:09:06] 	 nRF5340 Audio nRF5340 Audio DK cpuapp 	       
[2022/12/8 14:09:06] 	 NCS base version: 2.2.0-rc1 		       
[2022/12/8 14:09:06] 	 Cmake run : Thu Dec 08 14:02:45 2022
[2022/12/8 14:09:06] HL [00:00:00.259,704] <inf> fw_info: ------- DEBUG BUILD -------
[2022/12/8 14:09:06] HL [00:00:00.259,704] <inf> fw_info: HEADSET left device
[2022/12/8 14:09:06] HL [00:00:00.270,324] <inf> board_version: Compatible board/HW version found: 1.0.0
[2022/12/8 14:09:09] HL [00:00:02.318,328] <wrn> bt_hci_core: Controller to host flow control not supported
[2022/12/8 14:09:09] HL [00:00:02.321,472] <inf> bt_hci_core: No ID address. App must call settings_load()
[2022/12/8 14:09:09] HL [00:00:02.321,533] <inf> ble: MAC: 00:00:00:00:00:00 (public)
[2022/12/8 14:09:09] HL [00:00:02.322,082] <inf> ble: Controller version: 3310
[2022/12/8 14:09:09] HL [00:00:02.444,702] <inf> cis_headset: Set direct advertising to F4:91:40:A0:AF:D6 (random)
[2022/12/8 14:09:09] HL [00:00:02.447,662] <inf> cis_headset: Advertising successfully started
[2022/12/8 14:09:13] HL [00:00:06.244,079] <inf> bt_hci_core: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c enh_conn_complete 1147
[2022/12/8 14:09:13] HL [00:00:06.244,110] <inf> bt_hci_core: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c bt_hci_le_enh_conn_complete 1184
[2022/12/8 14:09:13] HL [00:00:06.244,140] <inf> bt_conn: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/conn.c bt_conn_connected 1293
[2022/12/8 14:09:13] HL [00:00:06.245,697] <inf> cis_headset: Connected: F4:91:40:A0:AF:D6 (random)
[2022/12/8 14:09:13] HL [00:00:06.645,294] <inf> bt_conn: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/conn.c bt_conn_security_changed 2055
[2022/12/8 14:09:13] HL [00:00:06.645,294] <inf> bt_smp: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/smp.c bt_smp_encrypt_change 4746
[2022/12/8 14:09:13] HL [00:00:06.645,324] <inf> bt_smp: chan 0x200034bc conn 0x20003200 handle 0 encrypt 0x01 hci status 0x00
[2022/12/8 14:09:17] HL [00:00:10.347,076] <inf> cis_headset: Codec config for LC3:
[2022/12/8 14:09:17] HL [00:00:10.347,076] <inf> cis_headset: 	Frequency: 48000 Hz
[2022/12/8 14:09:17] HL [00:00:10.347,076] <inf> cis_headset: 	Frame Duration: 10000 us
[2022/12/8 14:09:17] HL [00:00:10.347,106] <inf> cis_headset: 	Channel allocation: 0x1
[2022/12/8 14:09:17] HL [00:00:10.347,106] <inf> cis_headset: 	Octets per frame: 120 (96000 kbps)
[2022/12/8 14:09:17] HL [00:00:10.347,106] <inf> cis_headset: 	Frames per SDU: 1
[2022/12/8 14:09:17] HL [00:00:10.349,761] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:17] HL [00:00:10.447,967] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:17] HL [00:00:10.646,484] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:17] HL [00:00:10.845,581] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:17] HL [00:00:11.047,088] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:11.145,568] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:11.247,680] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:11.345,550] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:11.547,485] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:11.745,574] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:11.947,082] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:12.045,623] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:18] HL [00:00:12.148,071] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:12.345,611] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:12.547,088] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:12.645,629] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:12.748,107] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:12.945,648] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:13.147,155] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:13.245,666] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:19] HL [00:00:13.347,198] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:20] HL [00:00:13.545,654] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:20] HL [00:00:13.746,582] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:20] HL [00:00:13.846,405] <inf> cis_headset: Codec config for LC3:
[2022/12/8 14:09:20] HL [00:00:13.846,405] <inf> cis_headset: 	Frequency: 48000 Hz
[2022/12/8 14:09:20] HL [00:00:13.846,405] <inf> cis_headset: 	Frame Duration: 10000 us
[2022/12/8 14:09:20] HL [00:00:13.846,405] <inf> cis_headset: 	Channel allocation: 0x1
[2022/12/8 14:09:20] HL [00:00:13.846,435] <inf> cis_headset: 	Octets per frame: 120 (96000 kbps)
[2022/12/8 14:09:20] HL [00:00:13.846,435] <inf> cis_headset: 	Frames per SDU: 1
[2022/12/8 14:09:20] HL [00:00:13.846,923] <inf> bt_att: [ZHD] WEST_TOPDIR/zephyr/subsys/bluetooth/host/att.c att_handle_rsp 845
[2022/12/8 14:09:20] HL [00:00:13.846,954] <err> os: ***** USAGE FAULT *****
[2022/12/8 14:09:20] HL [00:00:13.846,984] <err> os:   Illegal use of the EPSR
[2022/12/8 14:09:20] HL [00:00:13.846,984] <err> os: r0/a1:  0x20003200  r1/a2:  0x2000c1cc  r2/a3:  0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,015] <err> os: r3/a4:  0x00000000 r12/ip:  0x00000009 r14/lr:  0x00027d23
[2022/12/8 14:09:20] HL [00:00:13.847,015] <err> os:  xpsr:  0x60100000
[2022/12/8 14:09:20] HL [00:00:13.847,015] <err> os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,045] <err> os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,045] <err> os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,045] <err> os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,076] <err> os: fpscr:  0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,076] <err> os: Faulting instruction address (r15/pc): 0x00000000
[2022/12/8 14:09:20] HL [00:00:13.847,076] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[2022/12/8 14:09:20] HL [00:00:13.847,106] <err> os: Current thread: 0x20002f50 (BT RX)
[2022/12/8 14:09:20] HL [00:00:13.847,106] <err> error_handler: Caught system error -- reason 0. Entering infinite loop
[2022/12/8 14:09:58] 

Best Regards,

Handom

Related