hi, i just ran into a problem that i'm not familiar with, so I post it .I want your help and guide to clear me out if demo is supported with 2 PCA10040, or I did something unright.
Background:
I've been getting into some pre-research on new features of BLE5.3, and I choose LE Audio. I try running unicast_audio_client/unicast_audio_server demos with my PCA10040 boards to see how it works.
Problem description:
unicast_audio_client just crashes everytime when it goes to"k_sem_take(&sem_sink_discovered, K_FOREVER)"
static int discover_sink(void)
{
static struct bt_audio_discover_params params;
int err;
params.func = discover_sink_cb;
params.type = BT_AUDIO_SINK;
printk("[LRF]:%s,%d\n", __func__, __LINE__);
err = bt_audio_discover(default_conn, ¶ms);
if (err != 0) {
printk("Failed to discover sink: %d\n", err);
return err;
}
printk("[LRF]:%s,%d\n", __func__, __LINE__);
err = k_sem_take(&sem_sink_discovered, K_FOREVER);
if (err != 0) {
printk("failed to take sem_sink_discovered (err %d)\n", err);
return err;
}
printk("[LRF]:%s,%d\n", __func__, __LINE__);
return 0;
}
the following snapshot is the uart log of unicast_audio_client when it crashed

How to Reproduce:
Hardward: PCA10040 x 2
Software: ncs2.0.0
detail:
1. one PCA10040 runs demo unicast_audio_client(path: zephyr\samples\bluetooth), another runs demo unicast_audio_server
2. modifications i made:
(1)add nr52dk_nrf52832.conf(path : zephyr\samples\bluetooth\unicast_audio_client\boards)-->just a copy from nrf5340dk_nrf5340_cpuapp.conf
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_PERIODIC=y
# For LC3 the following configs are needed
CONFIG_FPU=y
CONFIG_LIBLC3CODEC=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
(2)add nr52dk_nrf52832.conf(path : zephyr\samples\bluetooth\unicast_audio_server\boards)-->just a copy from nrf52840dk_nrf52840.conf
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_PERIODIC=y