First VS code build error on the nRF5340 Audio DK board

Hi all

I am new to Nordic world.

I have received a nRF5340 audio dk board and would like to be able to get VS code to build the default sample code - I have tried in windows and linux and forlowed the instalation guide from NS.
I have tried to add it in the proj file - same result.

running the newest toolchaine

I an able to link to the board and get is ID 

how do I build the sample project?
(I have tried to google it).


FAILED: CMakeFiles/app.dir/src/audio/le_audio_rx.c.obj 
ccache /home/tha/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DGATEWAY=2 -DHEADSET=1 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=7168 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -DZEPHYR_CONFIG_OVERRIDE=zephyr_fatfs_config.h -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/tha/nrf5340_audio/include -I/home/tha/nrf5340_audio/src/audio -I/home/tha/nrf5340_audio/src/bluetooth -I/home/tha/nrf5340_audio/src/drivers -I/home/tha/nrf5340_audio/src/modules -I/home/tha/nrf5340_audio/src/utils -I/home/tha/nrf5340_audio/src/utils/macros -I/home/tha/nrf5340_audio/app -I/home/tha/ncs/v3.0.2/nrf/boards/arm/nrf5340_audio_dk_nrf5340 -I/home/tha/nrf5340_audio/src/bluetooth/bt_management/advertising -I/home/tha/nrf5340_audio/src/bluetooth/bt_management/controller_config -I/home/tha/nrf5340_audio/src/bluetooth/bt_management/dfu -I/home/tha/nrf5340_audio/src/bluetooth/bt_management/scanning -I/home/tha/ncs/v3.0.2/zephyr/subsys/bluetooth/host -I/home/tha/nrf5340_audio/src/bluetooth/bt_rendering_and_capture/volume -I/home/tha/nrf5340_audio/src/bluetooth/bt_content_control/media -I/home/tha/nrf5340_audio/src/bluetooth/bt_stream/broadcast -I/home/tha/nrf5340_audio/src/bluetooth/bt_stream/unicast -I/home/tha/nrf5340_audio/src/bluetooth/bt_stream/bt_le_audio_tx -I/home/tha/nrf5340_audio/src/bluetooth/bt_management -I/home/tha/nrf5340_audio/src/bluetooth/bt_rendering_and_capture -I/home/tha/nrf5340_audio/src/bluetooth/bt_content_control -I/home/tha/nrf5340_audio/src/bluetooth/bt_stream -I/home/tha/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated/zephyr -I/home/tha/ncs/v3.0.2/zephyr/include -I/home/tha/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated -I/home/tha/ncs/v3.0.2/zephyr/soc/nordic -I/home/tha/ncs/v3.0.2/zephyr/lib/libc/newlib/include -I/home/tha/ncs/v3.0.2/zephyr/lib/posix/options/getopt -I/home/tha/ncs/v3.0.2/zephyr/soc/nordic/nrf53/. -I/home/tha/ncs/v3.0.2/zephyr/soc/nordic/common/. -I/home/tha/ncs/v3.0.2/zephyr/subsys/bluetooth -I/home/tha/ncs/v3.0.2/zephyr/subsys/settings/include -I/home/tha/ncs/v3.0.2/nrf/include -I/home/tha/ncs/v3.0.2/nrf/lib/contin_array/. -I/home/tha/ncs/v3.0.2/nrf/lib/pcm_mix/. -I/home/tha/ncs/v3.0.2/nrf/subsys/settings/include -I/home/tha/ncs/v3.0.2/nrf/tests/include -I/home/tha/ncs/v3.0.2/modules/hal/cmsis/CMSIS/Core/Include -I/home/tha/ncs/v3.0.2/zephyr/modules/cmsis/. -I/home/tha/ncs/v3.0.2/modules/lib/cmsis-dsp/Include -I/home/tha/ncs/v3.0.2/nrf/modules/hal_nordic/. -I/home/tha/ncs/v3.0.2/modules/hal/nordic/nrfx -I/home/tha/ncs/v3.0.2/modules/hal/nordic/nrfx/drivers/include -I/home/tha/ncs/v3.0.2/modules/hal/nordic/nrfx/mdk -I/home/tha/ncs/v3.0.2/zephyr/modules/hal_nordic/nrfx/. -I/home/tha/nrf5340_audio/build/nrf5340_audio/modules/libmetal/libmetal/lib/include -I/home/tha/ncs/v3.0.2/modules/lib/open-amp/open-amp/lib/include -I/home/tha/ncs/v3.0.2/modules/debug/segger/SEGGER -I/home/tha/ncs/v3.0.2/modules/debug/segger/Config -I/home/tha/ncs/v3.0.2/nrfxlib/softdevice_controller/include -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/codec/inc -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/platform/os/inc -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/platform/os/baremetal/inc -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/include -I/home/tha/nrf5340_audio/build/nrf5340_audio/generated/library_nrf_security_psa -I/home/tha/ncs/v3.0.2/nrf/subsys/nrf_security/include -I/home/tha/ncs/v3.0.2/modules/crypto/oberon-psa-crypto/oberon/drivers -I/home/tha/ncs/v3.0.2/nrf/subsys/nrf_security/src/utils -I/home/tha/ncs/v3.0.2/modules/crypto/oberon-psa-crypto/include -I/home/tha/ncs/v3.0.2/modules/crypto/oberon-psa-crypto/library -I/home/tha/ncs/v3.0.2/modules/crypto/mbedtls/library -I/home/tha/ncs/v3.0.2/modules/crypto/mbedtls/include -I/home/tha/ncs/v3.0.2/modules/crypto/mbedtls/include/library -I/home/tha/ncs/v3.0.2/nrfxlib/crypto/nrf_oberon/include -I/home/tha/ncs/v3.0.2/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/home/tha/ncs/v3.0.2/zephyr/modules/fatfs -I/home/tha/ncs/v3.0.2/modules/fs/fatfs/include -isystem /home/tha/ncs/v3.0.2/zephyr/lib/libc/common/include -isystem /home/tha/ncs/v3.0.2/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros /home/tha/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated/zephyr/autoconf.h -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=/home/tha/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/tha/ncs/v3.0.2/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 -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/tha/nrf5340_audio=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/tha/ncs/v3.0.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/tha/ncs/v3.0.2=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -D_POSIX_THREADS -std=c99 -MD -MT CMakeFiles/app.dir/src/audio/le_audio_rx.c.obj -MF CMakeFiles/app.dir/src/audio/le_audio_rx.c.obj.d -o CMakeFiles/app.dir/src/audio/le_audio_rx.c.obj -c /home/tha/nrf5340_audio/src/audio/le_audio_rx.c
/home/tha/nrf5340_audio/src/audio/le_audio_rx.c:20:22: error: 'CONFIG_BT_ISO_RX_MTU' undeclared here (not in a function); did you mean 'CONFIG_BT_ID_MAX'?
   20 |         uint8_t data[CONFIG_BT_ISO_RX_MTU];
      |                      ^~~~~~~~~~~~~~~~~~~~
      |                      CONFIG_BT_ID_MAX
[287/679] Building C object zephyr/drivers/sensor/ti/ina23x/CMakeFiles/drivers__sensor__ti__ina23x.dir/ina23x_trigger.c.obj
[288/679] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[289/679] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[290/679] Building C object zephyr/drivers/sensor/voltage_divider/CMakeFiles/drivers__sensor__voltage_divider.dir/voltage.c.obj
[291/679] Building C object zephyr/drivers/sensor/ti/ina23x/CMakeFiles/drivers__sensor__ti__ina23x.dir/ina230.c.obj
[292/679] Building C object zephyr/drivers/watchdog/CMakeFiles/drivers__watchdog.dir/wdt_nrfx.c.obj
[293/679] Building C object zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_common.c.obj
[294/679] Building C object zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj
[295/679] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj
FAILED: zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj 
ccache /home/tha/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DGATEWAY=2 -DHEADSET=1 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=7168 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/tha/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated/zephyr -I/home/tha/ncs/v3.0.2/zephyr/include -I/home/tha/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated -I/home/tha/ncs/v3.0.2/zephyr/soc/nordic -I/home/tha/ncs/v3.0.2/zephyr/lib/libc/newlib/include -I/home/tha/ncs/v3.0.2/zephyr/lib/posix/options/getopt -I/home/tha/ncs/v3.0.2/zephyr/soc/nordic/nrf53/. -I/home/tha/ncs/v3.0.2/zephyr/soc/nordic/common/. -I/home/tha/ncs/v3.0.2/zephyr/subsys/bluetooth -I/home/tha/ncs/v3.0.2/zephyr/subsys/settings/include -I/home/tha/ncs/v3.0.2/nrf/include -I/home/tha/ncs/v3.0.2/nrf/lib/contin_array/. -I/home/tha/ncs/v3.0.2/nrf/lib/pcm_mix/. -I/home/tha/ncs/v3.0.2/nrf/subsys/settings/include -I/home/tha/ncs/v3.0.2/nrf/tests/include -I/home/tha/ncs/v3.0.2/modules/hal/cmsis/CMSIS/Core/Include -I/home/tha/ncs/v3.0.2/zephyr/modules/cmsis/. -I/home/tha/ncs/v3.0.2/modules/lib/cmsis-dsp/Include -I/home/tha/ncs/v3.0.2/nrf/modules/hal_nordic/. -I/home/tha/ncs/v3.0.2/modules/hal/nordic/nrfx -I/home/tha/ncs/v3.0.2/modules/hal/nordic/nrfx/drivers/include -I/home/tha/ncs/v3.0.2/modules/hal/nordic/nrfx/mdk -I/home/tha/ncs/v3.0.2/zephyr/modules/hal_nordic/nrfx/. -I/home/tha/nrf5340_audio/build/nrf5340_audio/modules/libmetal/libmetal/lib/include -I/home/tha/ncs/v3.0.2/modules/lib/open-amp/open-amp/lib/include -I/home/tha/ncs/v3.0.2/modules/debug/segger/SEGGER -I/home/tha/ncs/v3.0.2/modules/debug/segger/Config -I/home/tha/ncs/v3.0.2/nrfxlib/softdevice_controller/include -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/codec/inc -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/platform/os/inc -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/platform/os/baremetal/inc -I/home/tha/ncs/v3.0.2/nrfxlib/lc3/include -I/home/tha/nrf5340_audio/build/nrf5340_audio/generated/library_nrf_security_psa -I/home/tha/ncs/v3.0.2/nrf/subsys/nrf_security/include -I/home/tha/ncs/v3.0.2/modules/crypto/oberon-psa-crypto/oberon/drivers -I/home/tha/ncs/v3.0.2/nrf/subsys/nrf_security/src/utils -I/home/tha/ncs/v3.0.2/modules/crypto/oberon-psa-crypto/include -I/home/tha/ncs/v3.0.2/modules/crypto/oberon-psa-crypto/library -I/home/tha/ncs/v3.0.2/modules/crypto/mbedtls/library -I/home/tha/ncs/v3.0.2/modules/crypto/mbedtls/include -I/home/tha/ncs/v3.0.2/modules/crypto/mbedtls/include/library -I/home/tha/ncs/v3.0.2/nrfxlib/crypto/nrf_oberon/include -I/home/tha/ncs/v3.0.2/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem /home/tha/ncs/v3.0.2/zephyr/lib/libc/common/include -isystem /home/tha/ncs/v3.0.2/nrfxlib/crypto/nrf_cc312_platform/include -Wshadow -fno-strict-aliasing -Os -imacros /home/tha/nrf5340_audio/build/nrf5340_audio/zephyr/include/generated/zephyr/autoconf.h -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=/home/tha/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/tha/ncs/v3.0.2/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 -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/tha/nrf5340_audio=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/tha/ncs/v3.0.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/tha/ncs/v3.0.2=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj -MF zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj.d -o zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj -c /home/tha/ncs/v3.0.2/zephyr/subsys/bluetooth/host/hci_core.c
/home/tha/ncs/v3.0.2/zephyr/subsys/bluetooth/host/hci_core.c:104:26: error: 'CONFIG_BT_RPA_TIMEOUT' undeclared here (not in a function); did you mean 'CONFIG_SD_DATA_TIMEOUT'?
  104 |         .rpa_timeout   = CONFIG_BT_RPA_TIMEOUT,
      |                          ^~~~~~~~~~~~~~~~~~~~~
      |                          CONFIG_SD_DATA_TIMEOUT
ninja: build stopped: subcommand failed.
[10/20] No configure step for 'ipc_radio'
FAILED: _sysbuild/sysbuild/images/nrf5340_audio-prefix/src/nrf5340_audio-stamp/nrf5340_audio-build /home/tha/nrf5340_audio/build/_sysbuild/sysbuild/images/nrf5340_audio-prefix/src/nrf5340_audio-stamp/nrf5340_audio-build 
cd /home/tha/nrf5340_audio/build/nrf5340_audio && /home/tha/ncs/toolchains/7cbc0036f4/usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/tha/ncs/toolchains/7cbc0036f4/usr/local/bin/cmake --build /home/tha/nrf5340_audio/build

 *  The terminal process terminated with exit code: 1. 

Related