Hi,
I own an nRF5340 Audio DK, on which I successfully run the example audio application (in BIS mode).
I also have my own customized board, based on Raytac MDBT53v, for which a designated build configuration & device tree are available.
Using nRF extension for VSCode, when building for "raytac_mdbt53v_db_40_nrf5340_cpuapp" I get so many errors that I'm not sure how to fix:
[16/853] Building C object CMakeFiles/app.dir/src/drivers/cs47l63_comm.c.obj FAILED: CMakeFiles/app.dir/src/drivers/cs47l63_comm.c.obj C:\ncs\toolchains\cf2149caf2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DGATEWAY=2 -DHEADSET=1 -DKERNEL -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_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/include -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/audio -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/modules -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/utils -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/utils/macros -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/app -IC:/ncs/v2.6.0/nrf/boards/arm/nrf5340_audio_dk_nrf5340 -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_management/advertising -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_management/controller_config -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_management/dfu -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_management/scanning -IC:/ncs/v2.6.0/zephyr/subsys/bluetooth/host -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_renderer/volume -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_content_control/media -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_stream/broadcast -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_stream/unicast -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_stream/bt_le_audio_tx -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_management -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_renderer -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_content_control -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/bluetooth/bt_stream -IC:/ncs/v2.6.0/zephyr/include -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/build_raytac_cpuapp/zephyr/include/generated -IC:/ncs/v2.6.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.6.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.6.0/zephyr/lib/posix/getopt/. -IC:/ncs/v2.6.0/zephyr/soc/common/nordic_nrf/. -IC:/ncs/v2.6.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.6.0/zephyr/subsys/bluetooth -IC:/ncs/v2.6.0/nrf/include -IC:/ncs/v2.6.0/nrf/lib/contin_array/. -IC:/ncs/v2.6.0/nrf/lib/pcm_mix/. -IC:/ncs/v2.6.0/nrf/tests/include -IC:/ncs/v2.6.0/modules/hal/cirrus-logic -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/common -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/common/bridge -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/common/platform_bsp -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/cs47l63 -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/cs47l63/bsp -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/cs47l63/config -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/cs47l63/fw_pt -IC:/ncs/v2.6.0/modules/hal/cirrus-logic/cs47l63/generated -IC:/ncs/v2.6.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.6.0/zephyr/modules/cmsis/. -IC:/ncs/v2.6.0/modules/lib/cmsis-dsp/Include -IC:/ncs/v2.6.0/modules/hal/nordic/nrfx -IC:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.6.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.6.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.6.0/nrf/applications/nrf5340_audio/build_raytac_cpuapp/modules/libmetal/libmetal/lib/include -IC:/ncs/v2.6.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.6.0/modules/debug/segger/SEGGER -IC:/ncs/v2.6.0/modules/debug/segger/Config -IC:/ncs/v2.6.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.6.0/nrfxlib/lc3/codec/inc -IC:/ncs/v2.6.0/nrfxlib/lc3/platform/os/inc -IC:/ncs/v2.6.0/nrfxlib/lc3/platform/os/baremetal/inc -IC:/ncs/v2.6.0/nrfxlib/lc3/include -IC:/ncs/v2.6.0/nrfxlib/softdevice_controller/include -IC:/ncs/v2.6.0/zephyr/modules/fatfs -IC:/ncs/v2.6.0/modules/fs/fatfs/include -isystem C:/ncs/v2.6.0/zephyr/lib/libc/common/include -isystem C:/ncs/v2.6.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Og -imacros C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/build_raytac_cpuapp/zephyr/include/generated/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=C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -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 -fstack-usage -fmacro-prefix-map=C:/ncs/v2.6.0/nrf/applications/nrf5340_audio=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.6.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.6.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -D_POSIX_THREADS -std=c99 -MD -MT CMakeFiles/app.dir/src/drivers/cs47l63_comm.c.obj -MF CMakeFiles\app.dir\src\drivers\cs47l63_comm.c.obj.d -o CMakeFiles/app.dir/src/drivers/cs47l63_comm.c.obj -c C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c In file included from C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/gcc.h:98, from C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain.h:50, from C:/ncs/v2.6.0/zephyr/include/zephyr/kernel_includes.h:23, from C:/ncs/v2.6.0/zephyr/include/zephyr/kernel.h:17, from C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:11: C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:41: error: '__device_dts_ord_DT_N_INST_0_cirrus_cs47l63_P_gpio9_gpios_IDX_0_PH_ORD' undeclared here (not in a function) 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:33: note: in expansion of macro '_CONCAT' 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:216:37: note: in expansion of macro 'DEVICE_NAME_GET' 216 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:233:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 233 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:331:25: note: in expansion of macro 'DEVICE_DT_GET' 331 | .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:420:9: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET_BY_IDX' 420 | GPIO_DT_SPEC_INST_GET_BY_IDX(inst, prop, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:30:50: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET' 30 | static const struct gpio_dt_spec hw_codec_gpio = GPIO_DT_SPEC_INST_GET(0, gpio9_gpios); | ^~~~~~~~~~~~~~~~~~~~~ In file included from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/arm/arch.h:20, from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/cpu.h:19, from C:/ncs/v2.6.0/zephyr/include/zephyr/kernel_includes.h:37: C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_P_gpio9_gpios_IDX_0_VAL_pin' undeclared here (not in a function) 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4352:9: note: in definition of macro 'DT_CAT7' 4352 | a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX' 164 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin) | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX' 332 | .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx), \ | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:33: note: in expansion of macro 'DT_DRV_INST' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:420:9: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET_BY_IDX' 420 | GPIO_DT_SPEC_INST_GET_BY_IDX(inst, prop, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:30:50: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET' 30 | static const struct gpio_dt_spec hw_codec_gpio = GPIO_DT_SPEC_INST_GET(0, gpio9_gpios); | ^~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:41: error: '__device_dts_ord_DT_N_INST_0_cirrus_cs47l63_P_irq_gpios_IDX_0_PH_ORD' undeclared here (not in a function) 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:33: note: in expansion of macro '_CONCAT' 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:216:37: note: in expansion of macro 'DEVICE_NAME_GET' 216 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:233:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 233 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:331:25: note: in expansion of macro 'DEVICE_DT_GET' 331 | .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:420:9: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET_BY_IDX' 420 | GPIO_DT_SPEC_INST_GET_BY_IDX(inst, prop, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:31:49: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET' 31 | static const struct gpio_dt_spec hw_codec_irq = GPIO_DT_SPEC_INST_GET(0, irq_gpios); | ^~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_P_irq_gpios_IDX_0_VAL_pin' undeclared here (not in a function) 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4352:9: note: in definition of macro 'DT_CAT7' 4352 | a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX' 164 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin) | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX' 332 | .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx), \ | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:33: note: in expansion of macro 'DT_DRV_INST' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:420:9: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET_BY_IDX' 420 | GPIO_DT_SPEC_INST_GET_BY_IDX(inst, prop, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:31:49: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET' 31 | static const struct gpio_dt_spec hw_codec_irq = GPIO_DT_SPEC_INST_GET(0, irq_gpios); | ^~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:41: error: '__device_dts_ord_DT_N_INST_0_cirrus_cs47l63_P_reset_gpios_IDX_0_PH_ORD' undeclared here (not in a function) 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:33: note: in expansion of macro '_CONCAT' 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:216:37: note: in expansion of macro 'DEVICE_NAME_GET' 216 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:233:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 233 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:331:25: note: in expansion of macro 'DEVICE_DT_GET' 331 | .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:420:9: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET_BY_IDX' 420 | GPIO_DT_SPEC_INST_GET_BY_IDX(inst, prop, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:32:51: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET' 32 | static const struct gpio_dt_spec hw_codec_reset = GPIO_DT_SPEC_INST_GET(0, reset_gpios); | ^~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_P_reset_gpios_IDX_0_VAL_pin' undeclared here (not in a function) 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4352:9: note: in definition of macro 'DT_CAT7' 4352 | a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX' 164 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin) | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX' 332 | .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx), \ | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:393:33: note: in expansion of macro 'DT_DRV_INST' 393 | GPIO_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), prop, idx) | ^~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/gpio.h:420:9: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET_BY_IDX' 420 | GPIO_DT_SPEC_INST_GET_BY_IDX(inst, prop, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:32:51: note: in expansion of macro 'GPIO_DT_SPEC_INST_GET' 32 | static const struct gpio_dt_spec hw_codec_reset = GPIO_DT_SPEC_INST_GET(0, reset_gpios); | ^~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:41: error: '__device_dts_ord_DT_N_INST_0_cirrus_cs47l63_BUS_ORD' undeclared here (not in a function) 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:89:33: note: in expansion of macro '_CONCAT' 89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:216:37: note: in expansion of macro 'DEVICE_NAME_GET' 216 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/device.h:233:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 233 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:388:24: note: in expansion of macro 'DEVICE_DT_GET' 388 | .bus = DEVICE_DT_GET(DT_BUS(node_id)), \ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:9: note: in expansion of macro 'SPI_DT_SPEC_GET' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:36:39: note: in expansion of macro 'SPI_DT_SPEC_INST_GET' 36 | static const struct spi_dt_spec spi = SPI_DT_SPEC_INST_GET( | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_P_spi_max_frequency' undeclared here (not in a function) 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4343:29: note: in definition of macro 'DT_CAT3' 4343 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:332:30: note: in expansion of macro 'DT_PROP' 332 | .frequency = DT_PROP(node_id, spi_max_frequency), \ | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:389:27: note: in expansion of macro 'SPI_CONFIG_DT' 389 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:9: note: in expansion of macro 'SPI_DT_SPEC_GET' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:25: note: in expansion of macro 'DT_DRV_INST' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:36:39: note: in expansion of macro 'SPI_DT_SPEC_INST_GET' 36 | static const struct spi_dt_spec spi = SPI_DT_SPEC_INST_GET( | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_P_duplex' undeclared here (not in a function) 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4343:29: note: in definition of macro 'DT_CAT3' 4343 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:334:25: note: in expansion of macro 'DT_PROP' 334 | DT_PROP(node_id, duplex) | \ | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:389:27: note: in expansion of macro 'SPI_CONFIG_DT' 389 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:9: note: in expansion of macro 'SPI_DT_SPEC_GET' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:25: note: in expansion of macro 'DT_DRV_INST' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:36:39: note: in expansion of macro 'SPI_DT_SPEC_INST_GET' 36 | static const struct spi_dt_spec spi = SPI_DT_SPEC_INST_GET( | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_P_frame_format' undeclared here (not in a function) 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4343:29: note: in definition of macro 'DT_CAT3' 4343 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:335:25: note: in expansion of macro 'DT_PROP' 335 | DT_PROP(node_id, frame_format) | \ | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:389:27: note: in expansion of macro 'SPI_CONFIG_DT' 389 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:9: note: in expansion of macro 'SPI_DT_SPEC_GET' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:25: note: in expansion of macro 'DT_DRV_INST' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:36:39: note: in expansion of macro 'SPI_DT_SPEC_INST_GET' 36 | static const struct spi_dt_spec spi = SPI_DT_SPEC_INST_GET( | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_cirrus_cs47l63_REG_IDX_0_VAL_ADDRESS' undeclared here (not in a function); did you mean 'DT_N_S_cpus_S_cpu_0_REG_IDX_0_VAL_ADDRESS'? 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:4345:33: note: in definition of macro 'DT_CAT4' 4345 | #define DT_CAT4(a1, a2, a3, a4) a1 ## a2 ## a3 ## a4 | ^~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:2225:30: note: in expansion of macro 'DT_REG_ADDR_BY_IDX' 2225 | #define DT_REG_ADDR(node_id) DT_REG_ADDR_BY_IDX(node_id, 0) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:339:26: note: in expansion of macro 'DT_REG_ADDR' 339 | .slave = DT_REG_ADDR(node_id), \ | ^~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:389:27: note: in expansion of macro 'SPI_CONFIG_DT' 389 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \ | ^~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:9: note: in expansion of macro 'SPI_DT_SPEC_GET' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' 104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT' 334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST' 3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v2.6.0/zephyr/include/zephyr/drivers/spi.h:404:25: note: in expansion of macro 'DT_DRV_INST' 404 | SPI_DT_SPEC_GET(DT_DRV_INST(inst), operation_, delay_) | ^~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:36:39: note: in expansion of macro 'SPI_DT_SPEC_INST_GET' 36 | static const struct spi_dt_spec spi = SPI_DT_SPEC_INST_GET( | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:317:65: error: initializer element is not constant 317 | static cs47l63_bsp_config_t bsp_config = { .bsp_reset_gpio_id = hw_codec_reset.pin, | ^~~~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:317:65: note: (near initialization for 'bsp_config.bsp_reset_gpio_id') C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:318:63: error: initializer element is not constant 318 | .bsp_int_gpio_id = hw_codec_irq.pin, | ^~~~~~~~~~~~ C:/ncs/v2.6.0/nrf/applications/nrf5340_audio/src/drivers/cs47l63_comm.c:318:63: note: (near initialization for 'bsp_config.bsp_int_gpio_id') ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\ncs\v2.6.0\nrf\applications\nrf5340_audio\build_raytac_cpuapp'
I'll mention that when building for "nrf5340_audio_dk_nrf5340_cpuapp", everything works perfectly fine.
I'd appreciate your help with the required modifications in order to build the application for my customized board.
Thanks,
Dekel