Hi,
I am using nRF Connect SDK v2.1.1 with nRF5340 audio DK PCA10121. I am able to have LC3 audio CIS example code working for gateway and headset. I turned on CONFIG_BT_SHELL to be enable BT shell for cmd_fal_add() but I got into compiler error. Here are my prj.conf configuration:
# Shell related defines
CONFIG_SHELL=y
CONFIG_KERNEL_SHELL=y
CONFIG_USE_SEGGER_RTT=y
## Disable logs on RTT
CONFIG_SHELL_RTT_INIT_LOG_LEVEL_NONE=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SHELL_BACKEND_SERIAL=y
CONFIG_SHELL_VT100_COLORS=y
CONFIG_SHELL_STACK_SIZE=4096
CONFIG_SHELL_CMD_BUFF_SIZE=128
## Reduce shell memory usage
CONFIG_SHELL_WILDCARD=n
CONFIG_SHELL_HELP_ON_WRONG_ARGUMENT_COUNT=n
CONFIG_SHELL_STATS=n
CONFIG_SHELL_CMDS=n
CONFIG_SHELL_HISTORY=y
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_SHELL=y
CONFIG_BT_FILTER_ACCEPT_LIST=y
The compiler error is:
c:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr/subsys/bluetooth/shell/libsubsys__bluetooth__shell.a(audio.c.obj):C:\Projects\le-audio\gateway\zephyr\subsys\bluetooth\shell\audio.c:607: multiple definition of `unicast_client_cbs'; app/libapp.a(le_audio_cis_gateway.c.obj):C:\Projects\le-audio\gateway\gateway\src\bluetooth\le_audio_cis_gateway.c:195: first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' --build 'c:\Projects\le-audio\gateway\gateway\build'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' --build 'c:\Projects\le-audio\gateway\gateway\build'
When I comment out unicast_client_cbs in either audio.c:607 or le_audio_cis_gateway.c:195, I got different compiler errors. Do I need another CONFIG_BT option, that I don't see, for nRF Connect SDK v2.1.1 with nRF5340 audio DK PCA10121?
Thanks,
Dennis
