undefined reference to `bt_bap_base_get_pres_delay'

I now need to make a program on nrf5340 audio DK, SDK v3.0.2 to scan auracast and print the information in the subgroup in PA, without sink BIS.

In addition, it needs to be used as a unicast server so that the mobile phone can connect to DK and play music,

I can connect to my phone and play music using the C:\ncs\v3.0.2\nrf\applications\nrf5340_audio\src\bluetooth\bt_stream\unicast\unicast_server.c example,

So I added some config in overlay-unicast_server.conf,

#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_AUDIO_DEV=1

CONFIG_BT_GATT_AUTO_DISCOVER_CCC=y
CONFIG_BT_GATT_AUTO_RESUBSCRIBE=n
CONFIG_BT_GATT_AUTO_SEC_REQ=n
CONFIG_BT_GATT_AUTO_UPDATE_MTU=y
CONFIG_BT_GATT_CACHING=n
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DYNAMIC_DB=y

CONFIG_BT_MAX_CONN=4
CONFIG_BT_MAX_PAIRED=4
CONFIG_BT_EXT_ADV=y

CONFIG_BT_AUDIO=y

CONFIG_BT_PERIPHERAL=y
CONFIG_BT_ISO_PERIPHERAL=y
CONFIG_BT_BAP_UNICAST_SERVER=y
CONFIG_BT_CAP_ACCEPTOR=y
CONFIG_BT_CAP_ACCEPTOR_SET_MEMBER=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_PAC_SNK_NOTIFIABLE=y
CONFIG_BT_PAC_SRC=y
CONFIG_BT_PAC_SRC_NOTIFIABLE=y
CONFIG_BT_CSIP_SET_MEMBER=y
CONFIG_BT_DEVICE_APPEARANCE=2369

CONFIG_BT_ISO_MAX_CHAN=2
CONFIG_BT_ASCS=y
CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT=1
CONFIG_BT_ASCS_MAX_ASE_SRC_COUNT=1
CONFIG_BT_VCP_VOL_REND=y
CONFIG_BT_MCC=y
CONFIG_BT_MCC_READ_MEDIA_STATE=y
CONFIG_BT_MCC_SET_MEDIA_CONTROL_POINT=y
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
#CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=25

CONFIG_LC3_ENC_CHAN_MAX=1
CONFIG_LC3_DEC_CHAN_MAX=1
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=2048


CONFIG_BT=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV_SYNC=y

CONFIG_BT_PERIPHERAL=y
CONFIG_BT_AUDIO=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_SMP=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_BAP_BROADCAST_SINK=y
CONFIG_BT_ISO_SYNC_RECEIVER=y

CONFIG_BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE=128
CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=255

CONFIG_BT_ATT_PREPARE_COUNT=10


CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y
CONFIG_NVS=y
CONFIG_BT_SETTINGS=y
CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE=y

But the compilation will report an error: What other configs do I need to add?

C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/pa_sync.c:123: undefined reference to `bt_bap_base_get_pres_delay'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/pa_sync.c:124: undefined reference to `bt_bap_base_get_subgroup_count'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/pa_sync.c:131: undefined reference to `bt_bap_base_get_bis_indexes'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/pa_sync.c:136: undefined reference to `bt_bap_base_foreach_subgroup'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(pa_sync.c.obj): in function `reset_sync_state':    
C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/pa_sync.c:37: undefined reference to `bt_bap_broadcast_sink_delete'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(base_parse.c.obj): in function `foreach_subgroup_cb':
C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/base_parse.c:32: undefined reference to `bt_bap_base_get_subgroup_codec_data'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/base_parse.c:42: undefined reference to `bt_bap_base_get_subgroup_codec_meta'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/base_parse.c:54: undefined reference to `bt_bap_base_subgroup_get_bis_indexes'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/base_parse.c:67: undefined reference to `bt_bap_base_subgroup_codec_to_codec_cfg'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/base_parse.c:117: undefined reference to `bt_bap_base_subgroup_foreach_bis'
c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(base_parse.c.obj): in function `ad_try_get_base':  
C:/ncs/nrf5340_audio/nrf5340_audio/unicast_server/base_parse.c:125: undefined reference to `bt_bap_base_get_base_from_

Parents Reply Children
No Data
Related