Attached error log snippet for the reference.
Attached error log snippet for the reference.
Hi,
Is this the nRF5340 Audio DK or is it you custom audio board?
Do you get issues with a later SDK version, say, v2.7.0 or 2.9.0?
Regards,
Priyanka
SDK version v2.5.0
Hi,
I just noticed one thing.
When you build, first navigate to the nrf5340_audio folder, i.e.
right now you are doing the 3rd step of west build from the c:/ncs/v2.9.0 location, but you need to do the 3rd step from this location:
c:/ncs/v2.9.0/nrf/applications/nrf5340_audio
Please try from this location and you will be able to build.
-Priyanka
Facing below build error while running on the provided path:
Please open command prompt via Toolchain manager as mentioned before.
Then select the path by:
cd C:/ncs/..../nrf5340_audio
Then in the updated path, try the west build.
Also, please attach the entire build log, including what instruction you have given.
-Priyanka
I am running west build by opening command prompt via toolchain manager:
(v2.9.0) C:\ncs\v2.9.0\nrf\applications\nrf5340_audio> west build -b nrf5340_audio_dk_nrf5340_cpuapp --pristine -- -DCONFIG_AUDIO_DEV=2 -- west build: making build dir C:\ncs\v2.9.0\nrf\applications\nrf5340_audio\build pristine -- west build: generating a build system Loading Zephyr module(s) (Zephyr base): sysbuild_default -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache -- Found west (found suitable version "1.2.0", minimum required is "0.14.0") CMake Warning at C:/ncs/v2.9.0/zephyr/cmake/modules/boards.cmake:110 (message): Deprecated BOARD=nrf5340_audio_dk_nrf5340_cpuapp specified, board automatically changed to: nrf5340_audio_dk/nrf5340/cpuapp. Call Stack (most recent call first): cmake/modules/sysbuild_default.cmake:15 (include) C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include) C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include) template/CMakeLists.txt:10 (find_package) -- Board: nrf5340_audio_dk, qualifiers: nrf5340/cpuapp Parsing C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/Kconfig.sysbuild Loaded configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/_sysbuild/empty.conf' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/_sysbuild/empty.conf' Configuration saved to 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/zephyr/.config' Kconfig header saved to 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/_sysbuild/autoconf.h' -- *********************************** * Running CMake for nrf5340_audio * *********************************** Loading Zephyr default modules (Zephyr base). -- Application: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio -- CMake version: 3.21.0 -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake) -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr) -- Found west (found suitable version "1.2.0", minimum required is "0.14.0") -- Board: nrf5340_audio_dk, qualifiers: nrf5340/cpuapp -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk) -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk) -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: C:/ncs/v2.9.0/zephyr/boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp.dts -- Generated zephyr.dts: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated/zephyr/devicetree_generated.h -- Including generated dts.cmake file: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/dts.cmake warning: Experimental symbol NRF5340_AUDIO is enabled. warning: Experimental symbol USB_DEVICE_AUDIO is enabled. Parsing C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/Kconfig Loaded configuration 'C:/ncs/v2.9.0/zephyr/boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp_defconfig' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/prj.conf' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/misc/generated/extra_kconfig_options.conf' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/.config.sysbuild' Configuration saved to 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/.config' Kconfig header saved to 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated/zephyr/autoconf.h' -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe -- libmetal version: 1.6.0 (C:/ncs/v2.9.0/nrf/applications/nrf5340_audio) -- Build type: -- Host: Windows/AMD64 -- Target: Generic/arm -- Machine: arm -- Looking for include file stdatomic.h -- Looking for include file stdatomic.h - found -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp) -- Host: Windows/AMD64 -- Target: Generic/arm -- Machine: arm -- C_FLAGS : -Wall -Wextra -- Looking for include file fcntl.h -- Looking for include file fcntl.h - found -- Setting build type to 'MinSizeRel' as none was specified. CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message): __ASSERT() statements are globally ENABLED CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2164 (message): The CMake build type was set to 'MinSizeRel', but the optimization flag was set to '-Og'. This may be intentional and the warning can be turned off by setting the CMake variable 'NO_BUILD_TYPE_WARNING' -- Configuring done -- Generating done -- Build files have been written to: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio -- ******************************* * Running CMake for ipc_radio * ******************************* Loading Zephyr default modules (Zephyr base). -- Application: C:/ncs/v2.9.0/nrf/applications/ipc_radio -- CMake version: 3.21.0 -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake) -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr) -- Found west (found suitable version "1.2.0", minimum required is "0.14.0") -- Board: nrf5340_audio_dk, qualifiers: nrf5340/cpunet -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk) -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk) -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: C:/ncs/v2.9.0/zephyr/boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpunet.dts -- Generated zephyr.dts: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/include/generated/zephyr/devicetree_generated.h -- Including generated dts.cmake file: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/dts.cmake Parsing C:/ncs/v2.9.0/nrf/applications/ipc_radio/Kconfig Loaded configuration 'C:/ncs/v2.9.0/zephyr/boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpunet_defconfig' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/ipc_radio/prj.conf' Merged configuration 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/.config.sysbuild' Configuration saved to 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/.config' Kconfig header saved to 'C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/include/generated/zephyr/autoconf.h' -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe -- Setting build type to 'MinSizeRel' as none was specified. CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message): No SOURCES given to Zephyr library: drivers__console Excluding target from build. -- Configuring done -- Generating done -- Build files have been written to: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio -- Configuring done -- Generating done -- Build files have been written to: C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build ←[92m-- west build: building application [9/20] Performing build step for 'nrf5340_audio' [4/648] Generating include/generated/zephyr/version.h -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr), build: v3.7.99-ncs2 [648/648] Linking C executable zephyr\zephyr.elf Memory region Used Size Region Size %age Used FLASH: 414100 B 1 MB 39.49% RAM: 121116 B 448 KB 26.40% IDT_LIST: 0 GB 32 KB 0.00% Generating files from C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/nrf5340_audio/zephyr/zephyr.elf for board: nrf5340_audio_dk [11/20] Performing build step for 'ipc_radio' [4/131] Generating include/generated/zephyr/version.h -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr), build: v3.7.99-ncs2 [13/131] Building C object CMakeFiles/app.dir/src/main.c.obj FAILED: CMakeFiles/app.dir/src/main.c.obj C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DNRF5340_XXAA_NETWORK -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.9.0/nrf/applications/ipc_radio/./src -IC:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/include/generated/zephyr -IC:/ncs/v2.9.0/zephyr/include -IC:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/include/generated -IC:/ncs/v2.9.0/zephyr/soc/nordic -IC:/ncs/v2.9.0/zephyr/soc/nordic/nrf53/. -IC:/ncs/v2.9.0/zephyr/soc/nordic/common/. -IC:/ncs/v2.9.0/nrf/include -IC:/ncs/v2.9.0/nrf/tests/include -IC:/ncs/v2.9.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.9.0/zephyr/modules/cmsis/. -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.9.0/zephyr/modules/hal_nordic/nrfx/. -isystem C:/ncs/v2.9.0/zephyr/lib/libc/common/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/ipc_radio/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33+nodsp -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.9.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.9.0/nrf/applications/ipc_radio=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.9.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.9.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/ncs/v2.9.0/nrf/applications/ipc_radio/src/main.c C:/ncs/v2.9.0/nrf/applications/ipc_radio/src/main.c:15:2: error: #error "No radio serialization selected." 15 | #error "No radio serialization selected." | ^~~~~ [22/131] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/thread_abort.c.obj ninja: build stopped: subcommand failed. [15/20] Generating ../merged.hex FAILED: modules/nrf/ipc_radio-prefix/src/ipc_radio-stamp/ipc_radio-build C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build/modules/nrf/ipc_radio-prefix/src/ipc_radio-stamp/ipc_radio-build cmd.exe /C "cd /D C:\ncs\v2.9.0\nrf\applications\nrf5340_audio\build\ipc_radio && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ." ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/ncs/v2.9.0/nrf/applications/nrf5340_audio/build
Hi,
Priyanka is out of the office, so I pick up this case.
Please try to delete the build folder, update the SDK, and rebuild again.
Regards,
Amanda H.
Hi,
Priyanka is out of the office, so I pick up this case.
Please try to delete the build folder, update the SDK, and rebuild again.
Regards,
Amanda H.