I've successfully built and run the latest nrfF5340_audio (2.3.0-rc1) application for both headset and gateway and am now trying to add the BT shell. Headset builds and runs, but gateway gives many errors. I eliminated the duplicate definition of "unicast_client_cbs" as described in another post. Shell related configs in prj.conf are:
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/bt.c:297:13: warning: 'adv_rpa_expired' defined but not used [-Wunused-function]
297 | static bool adv_rpa_expired(struct bt_le_ext_adv *adv)
|
In file included from C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/kernel_includes.h:21,
from C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/kernel.h:17,
from C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/bt.c:24:
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/bt.c:85:22: warning: 'adv_opt' defined but not used [-Wunused-variable]
85 | static ATOMIC_DEFINE(adv_opt, SHELL_ADV_OPT_NUM);
|
C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/sys/atomic.h:115:18: note: in definition of macro 'ATOMIC_DEFINE'
115 | atomic_t name[ATOMIC_BITMAP_SIZE(num_bits)]
|
[131/451] Building C object zephyr/subsys/bluetooth/shell/CMakeFiles/subsys__bluetooth__shell.dir/audio.c.obj
In file included from C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/kernel/sched_priq.h:9,
from C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/kernel_includes.h:23,
from C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/kernel.h:17,
from C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/audio.c:16:
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/audio.c: In function 'audio_ad_data_add':
C:/ncs/v2.3.0-rc1/zephyr/include/zephyr/sys/util.h:109:9: warning: conversion from 'unsigned int' to 'uint8_t' {aka 'unsigned char'} changes value from '4294967295' to '255' [-Woverflow]
109 | ((size_t) (IS_ARRAY(array) + (sizeof(array) / sizeof((array)[0]))))
|
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/audio.c:2110:55: note: in expansion of macro 'ARRAY_SIZE'
2110 | data_array[ad_len].data_len = ARRAY_SIZE(ad_ext_uuid16) - 1;
|
[441/451] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/ncs/v2.3.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\v2.3.0-rc1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D C:\ncs\v2.3.0-rc1\nrf\applications\nrf5340_audio\build\dev_gateway\build_debug\zephyr && "C:\Program Files\CMake\bin\cmake.exe" -E echo ""
c:/ncs/toolchains/v2.3.0-rc1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a(hci_core.c.obj): in function `bt_disable':
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/host/hci_core.c:3794: undefined reference to `bt_adv_reset_adv_pool'
c:/ncs/toolchains/v2.3.0-rc1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr/subsys/bluetooth/shell/libsubsys__bluetooth__shell.a(vcp_vol_ctlr.c.obj): in function `cmd_vcp_vol_ctlr_aics_input_description_set':
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/vcp_vol_ctlr.c:969: undefined reference to `bt_aics_description_set'
c:/ncs/toolchains/v2.3.0-rc1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr/subsys/bluetooth/shell/libsubsys__bluetooth__shell.a(vcp_vol_ctlr.c.obj): in function `cmd_vcp_vol_ctlr_aics_input_description_get':
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/vcp_vol_ctlr.c:943: undefined reference to `bt_aics_description_get'
c:/ncs/toolchains/v2.3.0-rc1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr/subsys/bluetooth/shell/libsubsys__bluetooth__shell.a(vcp_vol_ctlr.c.obj): in function `cmd_vcp_vol_ctlr_aics_gain_set':
C:/ncs/v2.3.0-rc1/zephyr/subsys/bluetooth/shell/vcp_vol_ctlr.c:918: undefined reference to `bt_aics_gain_set'