nRF5340 audio DK WALKIE_TALKIE_DEMO build error

Hi, I am using nRF5340 audio DK PCA10121, NCS 2.1.1 I am following https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/README.html#enabling-the-walkie-talkie-demo to have prj.conf with CONFIG_WALKIE_TALKIE_DEMO=y.

I got this undefined symbol error "c:/Projects/Amoeba/BLE-Firmware/central_comm_node/prj.conf:70: warning: attempt to assign the value 'y' to the undefined symbol WALKIE_TALKIE_DEMO".

Here is my complete build trace. Please advise, thanks.

* Executing task: nRF Connect: Build: central_comm_node/build (active)

Building central_comm_node
west build --build-dir c:\Projects\Amoeba\BLE-Firmware\central_comm_node\build c:\Projects\Amoeba\BLE-Firmware\central_comm_node --pristine --board nrf5340_audio_dk_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS:STRING="y" -DCONFIG_DEBUG_THREAD_INFO:STRING="y" -DDTC_OVERLAY_FILE:STRING="c:/Projects/Amoeba/BLE-Firmware/central_comm_node/nrf5340_audio_dk_nrf5340_cpuapp.overlay" -DCONF_FILE:STRING="c:/Projects/Amoeba/BLE-Firmware/central_comm_node/prj.conf"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Projects/Amoeba/BLE-Firmware/central_comm_node
-- Found Python3: C:/ncs/toolchains/v2.1.1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.1.1/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/ncs/v2.1.1/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340_audio_dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found dtc: C:/ncs/toolchains/v2.1.1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.1.1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: c:/Projects/Amoeba/BLE-Firmware/central_comm_node/nrf5340_audio_dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: C:/Projects/Amoeba/BLE-Firmware/central_comm_node/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Projects/Amoeba/BLE-Firmware/central_comm_node/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Projects/Amoeba/BLE-Firmware/central_comm_node/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Projects/Amoeba/BLE-Firmware/central_comm_node/build/zephyr/dts.cmake

warning: Experimental symbol NRF5340_AUDIO is enabled.


warning: Experimental symbol BT_ISO_CENTRAL is enabled.


warning: Experimental symbol BT_AUDIO is enabled.
Parsing C:/Projects/Amoeba/BLE-Firmware/central_comm_node/Kconfig
Loaded configuration 'C:/ncs/v2.1.1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
Merged configuration 'c:/Projects/Amoeba/BLE-Firmware/central_comm_node/prj.conf'
Merged configuration 'C:/Projects/Amoeba/BLE-Firmware/central_comm_node/build/zephyr/misc/generated/extra_kconfig_options.conf'


warning: Experimental symbol BT_AUDIO_UNICAST_CLIENT is enabled.


warning: Experimental symbol BT_VCS_CLIENT is enabled.


c:/Projects/Amoeba/BLE-Firmware/central_comm_node/prj.conf:70: warning: attempt to assign the value 'y' to the undefined symbol WALKIE_TALKIE_DEMO

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.1.1/zephyr/cmake/modules/kconfig.cmake:293 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.1.1/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
C:/ncs/v2.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.1.1\opt\bin\python.exe' '-Bc:\Projects\Amoeba\BLE-Firmware\central_comm_node\build' -GNinja -DBOARD=nrf5340_audio_dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=y -DCONFIG_DEBUG_THREAD_INFO:STRING=y -DDTC_OVERLAY_FILE:STRING=c:/Projects/Amoeba/BLE-Firmware/central_comm_node/nrf5340_audio_dk_nrf5340_cpuapp.overlay -DCONF_FILE:STRING=c:/Projects/Amoeba/BLE-Firmware/central_comm_node/prj.conf '-Sc:\Projects\Amoeba\BLE-Firmware\central_comm_node'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Parents
  • I merged the PR changes to NCS v2.1.1. Look like C:\ncs\v2.1.1\nrf\applications\nrf5340_audio\src\drivers\cs47l63_reg_conf.h had changed (from input_enable[][] to line_in_enable[][]) to cause compilation error:

    C:\ncs\toolchains\v2.1.1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DARM_ALL_FAST_TABLES -DARM_DSP_CONFIG_TABLES -DARM_FAST_ALLOW_TABLES -DARM_FFT_ALLOW_TABLES -DARM_TABLE_RECIP_Q15 -DARM_TABLE_RECIP_Q31 -DARM_TABLE_SIN_F32 -DARM_TABLE_SIN_Q15 -DARM_TABLE_SIN_Q31 -DGATEWAY=2 -DHEADSET=1 -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I../src/audio -I../src/bluetooth -I../src/drivers -I../src/events -I../src/modules -I../src/utils -I../src/utils/macros -I../app -IC:/ncs/v2.1.1/nrf/boards/arm/nrf5340_audio_dk_nrf5340 -IC:/ncs/v2.1.1/zephyr/include/zephyr -IC:/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.1.1/zephyr/lib/libc/newlib/include -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.1/zephyr/subsys/bluetooth -IC:/ncs/v2.1.1/zephyr/subsys/settings/include -IC:/ncs/v2.1.1/nrf/include -IC:/ncs/v2.1.1/modules/hal/cirrus-logic -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/common -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/common/bridge -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/common/platform_bsp -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63 -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/bsp -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/config -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/fw_pt -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/generated -IC:/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.1/modules/hal/cmsis/CMSIS/DSP/Include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.1.1/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.1.1/modules/debug/segger/SEGGER -IC:/ncs/v2.1.1/modules/debug/segger/Config -IC:/ncs/v2.1.1/zephyr/modules/segger/. -IC:/ncs/v2.1.1/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.1.1/nrfxlib/lc3/codec/inc -IC:/ncs/v2.1.1/nrfxlib/lc3/platform/os/inc -IC:/ncs/v2.1.1/nrfxlib/lc3/platform/os/baremetal/inc -IC:/ncs/v2.1.1/nrfxlib/lc3/include -IC:/ncs/v2.1.1/nrfxlib/softdevice_controller/include -IC:/ncs/v2.1.1/modules/fs/fatfs/include -isystem C:/ncs/v2.1.1/nrfxlib/crypto/nrf_cc312_platform/include -Og -imacros C:/Projects/Amoeba/BLE-Firmware/walkie_talkie/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fstack-usage -fmacro-prefix-map=C:/Projects/Amoeba/BLE-Firmware/walkie_talkie=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/modules/hw_codec.c.obj -MF CMakeFiles\app.dir\src\modules\hw_codec.c.obj.d -o CMakeFiles/app.dir/src/modules/hw_codec.c.obj -c ../src/modules/hw_codec.c
    ../src/modules/hw_codec.c: In function 'hw_codec_default_conf_enable':
    c:\Projects\Amoeba\BLE-Firmware\walkie_talkie\src\modules\hw_codec.c:262:37: error: 'line_in_enable' undeclared (first use in this function); did you mean 'input_enable'?
    262 | ret = cs47l63_comm_reg_conf_write(line_in_enable, ARRAY_SIZE(line_in_enable));
    | ^~~~~~~~~~~~~~
    | input_enable

Reply
  • I merged the PR changes to NCS v2.1.1. Look like C:\ncs\v2.1.1\nrf\applications\nrf5340_audio\src\drivers\cs47l63_reg_conf.h had changed (from input_enable[][] to line_in_enable[][]) to cause compilation error:

    C:\ncs\toolchains\v2.1.1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DARM_ALL_FAST_TABLES -DARM_DSP_CONFIG_TABLES -DARM_FAST_ALLOW_TABLES -DARM_FFT_ALLOW_TABLES -DARM_TABLE_RECIP_Q15 -DARM_TABLE_RECIP_Q31 -DARM_TABLE_SIN_F32 -DARM_TABLE_SIN_Q15 -DARM_TABLE_SIN_Q31 -DGATEWAY=2 -DHEADSET=1 -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I../src/audio -I../src/bluetooth -I../src/drivers -I../src/events -I../src/modules -I../src/utils -I../src/utils/macros -I../app -IC:/ncs/v2.1.1/nrf/boards/arm/nrf5340_audio_dk_nrf5340 -IC:/ncs/v2.1.1/zephyr/include/zephyr -IC:/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.1.1/zephyr/lib/libc/newlib/include -IC:/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.1/zephyr/subsys/bluetooth -IC:/ncs/v2.1.1/zephyr/subsys/settings/include -IC:/ncs/v2.1.1/nrf/include -IC:/ncs/v2.1.1/modules/hal/cirrus-logic -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/common -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/common/bridge -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/common/platform_bsp -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63 -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/bsp -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/config -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/fw_pt -IC:/ncs/v2.1.1/modules/hal/cirrus-logic/cs47l63/generated -IC:/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.1/modules/hal/cmsis/CMSIS/DSP/Include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.1.1/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.1.1/modules/debug/segger/SEGGER -IC:/ncs/v2.1.1/modules/debug/segger/Config -IC:/ncs/v2.1.1/zephyr/modules/segger/. -IC:/ncs/v2.1.1/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.1.1/nrfxlib/lc3/codec/inc -IC:/ncs/v2.1.1/nrfxlib/lc3/platform/os/inc -IC:/ncs/v2.1.1/nrfxlib/lc3/platform/os/baremetal/inc -IC:/ncs/v2.1.1/nrfxlib/lc3/include -IC:/ncs/v2.1.1/nrfxlib/softdevice_controller/include -IC:/ncs/v2.1.1/modules/fs/fatfs/include -isystem C:/ncs/v2.1.1/nrfxlib/crypto/nrf_cc312_platform/include -Og -imacros C:/Projects/Amoeba/BLE-Firmware/walkie_talkie/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fstack-usage -fmacro-prefix-map=C:/Projects/Amoeba/BLE-Firmware/walkie_talkie=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/modules/hw_codec.c.obj -MF CMakeFiles\app.dir\src\modules\hw_codec.c.obj.d -o CMakeFiles/app.dir/src/modules/hw_codec.c.obj -c ../src/modules/hw_codec.c
    ../src/modules/hw_codec.c: In function 'hw_codec_default_conf_enable':
    c:\Projects\Amoeba\BLE-Firmware\walkie_talkie\src\modules\hw_codec.c:262:37: error: 'line_in_enable' undeclared (first use in this function); did you mean 'input_enable'?
    262 | ret = cs47l63_comm_reg_conf_write(line_in_enable, ARRAY_SIZE(line_in_enable));
    | ^~~~~~~~~~~~~~
    | input_enable

Children
Related