SPI configuration in zephyr by using nRF54l15dk as board configuration

Hi,
I would like to consult how could I deal with this error and build the code succesfully.

In device.h

'__device_dts_ord_113' undeclared here (not in a function); did you mean '__device_dts_ord_11'?

In devicetree_generated .h

'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_spi_max_frequency' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_4a000_S_mx25r6435f_0_P_spi_max_frequency'?

Below is my overlay file

&i2c22 {
    status = "okay";
    pinctrl-0 = <&i2c22_default>;
    pinctrl-1 = <&i2c22_sleep>;
    pinctrl-names = "default", "sleep";

    mysensor: mysensor@77 { //BME280 Test
        compatible = "i2c-device";
        status = "okay";
        reg = <0x77>;
    };
};

&uart21 {
	current-speed = <57600>;
	pinctrl-0 = <&uart21_default>;
	pinctrl-1 = <&uart21_sleep>;
	pinctrl-names = "default", "sleep";
};

&spi21 {
    compatible = "nordic,nrf-spim";
    status = "okay";
    pinctrl-0 = <&spi21_default>;
    pinctrl-1 = <&spi21_sleep>;
    pinctrl-names = "default", "sleep";
    cs-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;

    mysensor2: mysensor2@0 {
        compatible = "spi-device";
        reg = <0>;
        spi-max-frequency = <1000000>;
    };
};

&pinctrl {
    /omit-if-no-ref/ i2c22_default: i2c22_default {
        group1 {
            psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
                    <NRF_PSEL(TWIM_SDA, 1, 12)>;
        };
    };

    /omit-if-no-ref/ i2c22_sleep: i2c22_sleep {
        group1 {
            psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
                    <NRF_PSEL(TWIM_SDA, 1, 12)>;
            low-power-enable;
        };
    };

    spi21_default: spi21_default {
		group1 {
				psels = <NRF_PSEL(SPIM_SCK, 1, 8)>, 
						<NRF_PSEL(SPIM_MOSI, 1, 13)>,
						<NRF_PSEL(SPIM_MISO, 1, 14)>;
		};
	};

	spi21_sleep: spi21_sleep {
		group1 {
				psels = <NRF_PSEL(SPIM_SCK, 1, 8)>,
						<NRF_PSEL(SPIM_MOSI, 1, 13)>,
						<NRF_PSEL(SPIM_MISO, 1, 14)>;
				low-power-enable;
		};
	};

    uart21_default: uart21_default {
        group1 {
            psels = <NRF_PSEL(UART_TX, 1, 0)>, <NRF_PSEL(UART_RX, 1, 1)>;
        };
    };

    uart21_sleep: uart21_sleep {
        group1 {
            psels = <NRF_PSEL(UART_TX, 1, 0)>, <NRF_PSEL(UART_RX, 1, 1)>;
        };
    };
};


/ {
    zephyr,user {
        cts_pin-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; //CTS input
        rts_pin-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; //RTS output
    };
};

Below is the program code

#include <zephyr/types.h>
#include <stddef.h>
#include <errno.h>
#include <zephyr/sys/byteorder.h>

#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>

#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>

#define SPI_NODE  DT_NODELABEL(mysensor2)
/*Retrieve the API-device structure */
#define SPIOP	SPI_WORD_SET(8) | SPI_TRANSFER_MSB
struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);

/* For spi thread */
K_THREAD_STACK_DEFINE(spi_stack_area, 1280);
static k_tid_t spi_thread_id;
static struct k_thread spi_thread_data;

static int bme_write_reg(uint8_t reg, uint8_t value)
{
	int err;

	//Delcare a tx buffer having register address and data */
	uint8_t tx_buf[] = {(reg & 0x7F), value}; 
    struct spi_buf	tx_spi_buf 		= {.buf = tx_buf, .len = sizeof(tx_buf)};
    struct spi_buf_set tx_spi_buf_set	= {.buffers = &tx_spi_buf, .count = 1};

	/* call the spi_write_dt function with SPISPEC to write buffers */
	err = spi_write_dt(&spispec, &tx_spi_buf_set);
	if (err < 0) {
		LOG_ERR("spi_write_dt() failed, err %d", err);
		return err;
	}

	return 0;
}

static void spi_thread(void *p1, void *p2, void *p3) {
    printk("[%s]\n", __func__);
	while (1) {
		k_sleep(K_MSEC(10));
		bme_write_reg(0xF2, 0x04); //CTRLHUM 0xF2
	}
}

void spi_start(void) {
	printk("[%s]\n", __func__);

    //Check if SPI and GPIO devices are ready */
	int err = spi_is_ready_dt(&spispec);
    if (!err) {
		printk("Error: SPI device is not ready, err: %d", err);
	}

	if (spi_thread_id == NULL) {
		spi_thread_id = k_thread_create(&spi_thread_data, spi_stack_area,
			K_THREAD_STACK_SIZEOF(spi_stack_area),
			spi_thread, NULL, NULL, NULL,
			3, 0, K_NO_WAIT);

		int ret = k_thread_name_set(spi_thread_id, "SPI_THREAD");
		if (ret) {
			printk("[%s], Set thread name failed = %d\n", __func__, ret);
		}
	}
}

Here is the project configuration

#Add for I2C
CONFIG_I2C=y

#Add for UART
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_INTERRUPT_DRIVEN=n

#Add for Using inteneral RC
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

#Add for GPIO Configure
CONFIG_GPIO=y
CONFIG_NFCT_PINS_AS_GPIOS=y

#Add for set the thread name
CONFIG_THREAD_NAME=y
CONFIG_THREAD_MAX_NAME_LEN=12

#Add for SPI
CONFIG_SPI=y

Parents
  • Hello,

    It is a bit hard to tell from your screenshot, but are those error messages coming from the "Problems" tab? If so, you can just ignore these. This tab has some issues when it comes to understanding the application context of the open projects. 

    and build the code succesfully

    Have you tried building the application? If so, does it build successfully, or do you see any errors in the build log? If you see any errors, can you please upload the entire (!) build log here?

    Best regards,

    Edvin

  • Hi  ,
    Thank you for your reply.
    Yes, those are error messages from "Proglems" tab.
    And the error seems could not be ignored as the program could not be built successfully.
    Below is the entire build lot for your reference:

    Executing task: nRF Connect: Build [pristine]: Stylus_290/PCA10156_0_9_1
    
    Building Stylus_290
    C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1 c:/SpaceX/nRF54_NCSDK/Stylus_290 --pristine --board nrf54l15dk/nrf54l15/cpuapp --sysbuild -- -DBOARD_ROOT=c:/ncs/v3.0.0/nrf/spi_nrfx_wedy;c:/ncs/v3.0.0/nrf/ncs-fund-main/sharma_spi"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    Parsing c:/SpaceX/nRF54_NCSDK/Stylus_290/Kconfig.sysbuild
    Loaded configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/empty.conf'
    Merged configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/empty.conf'
    Configuration saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/zephyr/.config'
    Kconfig header saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/autoconf.h'
    --
    ********************************
    * Running CMake for Stylus_290 *
    ********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/SpaceX/nRF54_NCSDK/Stylus_290
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Found devicetree overlay: C:/SpaceX/nRF54_NCSDK/Stylus_290/nrf54l15dk_nrf54l15_cpuapp.overlay
    -- Generated zephyr.dts: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/zephyr.dts
    -- Generated pickled edt: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/dts.cmake
    
    warning: Deprecated symbol NFCT_PINS_AS_GPIOS is enabled.
    
    
    warning: Deprecated symbol BT_DIS_MANUF_DEPRECATED_USED is enabled.
    
    
    warning: Experimental symbol BT_HCI_ERR_TO_STR is enabled.
    
    Parsing C:/SpaceX/nRF54_NCSDK/Stylus_290/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
    Merged configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/prj.conf'
    Merged configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/.config.sysbuild'
    Configuration saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/.config'
    Kconfig header saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/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/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/subsys/bluetooth/host/CMakeLists.txt:83 (message):
    One of these options are enabled:
    
    CONFIG_BT_SMP_LOG_LEVEL_DBG CONFIG_BT_KEYS_LOG_LEVEL_DBG CONFIG_BT_LOG_SNIFFER_INFO.
    Private security keys such as the LTK will be printed out, do not use in
    production.
    
    
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_library_config ===============
    -- Using ccache: C:/Strawberry/c/bin/ccache.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:2180 (message):
    __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1
    -- west build: building application
    [4/372] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr), build: v4.0.99-ncs1
    [215/372] Building C object CMakeFiles/app.dir/src/bt_uart_stylus.c.obj
    FAILED: CMakeFiles/app.dir/src/bt_uart_stylus.c.obj
    ccache C:\ncs\toolchains\0b393f9e1b\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -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\" -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.0.0/nrf/drivers/mpsl/clock_control -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr -IC:/ncs/v3.0.0/zephyr/include -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated -IC:/ncs/v3.0.0/zephyr/soc/nordic -IC:/ncs/v3.0.0/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.0.0/zephyr/soc/nordic/common/. -IC:/ncs/v3.0.0/zephyr/subsys/bluetooth -IC:/ncs/v3.0.0/zephyr/subsys/settings/include -IC:/ncs/v3.0.0/nrf/include -IC:/ncs/v3.0.0/nrf/lib/multithreading_lock/. -IC:/ncs/v3.0.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.0.0/nrf/subsys/settings/include -IC:/ncs/v3.0.0/zephyr/drivers/flash -IC:/ncs/v3.0.0/nrf/tests/include -IC:/ncs/v3.0.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.0.0/zephyr/modules/cmsis/. -IC:/ncs/v3.0.0/nrf/modules/hal_nordic/. -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v3.0.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.0.0/nrfxlib/softdevice_controller/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/simple_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.0.0/nrfxlib/mpsl/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/include/protocol -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/generated/library_nrf_security_psa -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sicrypto/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include/library -isystem C:/ncs/v3.0.0/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.0.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:/SpaceX/nRF54_NCSDK/Stylus_290=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.0.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.0.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/bt_uart_stylus.c.obj -MF CMakeFiles\app.dir\src\bt_uart_stylus.c.obj.d -o CMakeFiles/app.dir/src/bt_uart_stylus.c.obj -c C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c
    In file included from C:/ncs/v3.0.0/zephyr/include/zephyr/toolchain/gcc.h:98,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/toolchain.h:50,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/__assert.h:11,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/byteorder.h:16,
    from C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:6:
    C:/ncs/v3.0.0/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_113' undeclared here (not in a function); did you mean '__device_dts_ord_11'?
    96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    C:/ncs/v3.0.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/v3.0.0/zephyr/include/zephyr/device.h:96:33: note: in expansion of macro '_CONCAT'
    96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/device.h:237:37: note: in expansion of macro 'DEVICE_NAME_GET'
    237 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/device.h:254:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
    254 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
    | ^~~~~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:16:39: note: in expansion of macro 'DEVICE_DT_GET'
    16 | const struct device *const uart_dev = DEVICE_DT_GET(DT_NODELABEL(uart21));
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c: In function 'uart_cb':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:113:26: warning: unused variable 'tx_data' [-Wunused-variable]
    113 | s_uart_tx_data_t tx_data;
    | ^~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c: At top level:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:50:22: warning: 'rx_buffer' defined but not used [-Wunused-variable]
    50 | static s_rx_buffer_t rx_buffer[3];
    | ^~~~~~~~~
    [222/372] Building C object CMakeFiles/app.dir/src/bt_hid_stylus.c.obj
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'hids_feat_rep_handler':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:124:14: warning: unused variable 'addr' [-Wunused-variable]
    124 | char addr[BT_ADDR_LE_STR_LEN];
    | ^~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'hids_pm_evt_handler':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:144:16: warning: unused variable 'i' [-Wunused-variable]
    144 | size_t i;
    | ^
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'hid_init':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:200:39: warning: unused variable 'hids_feat_rep' [-Wunused-variable]
    200 | struct bt_hids_outp_feat_rep *hids_feat_rep;
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'bt_hid_stylus_init':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:356:13: warning: unused variable 'err' [-Wunused-variable]
    356 | int err;
    | ^~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: At top level:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:120:13: warning: 'hids_feat_rep_handler' defined but not used [-Wunused-function]
    120 | static void hids_feat_rep_handler (struct bt_hids_rep *rep,
    | ^~~~~~~~~~~~~~~~~~~~~
    [224/372] Building C object CMakeFiles/app.dir/src/bt_spi_stylus.c.obj
    FAILED: CMakeFiles/app.dir/src/bt_spi_stylus.c.obj
    ccache C:\ncs\toolchains\0b393f9e1b\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -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\" -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.0.0/nrf/drivers/mpsl/clock_control -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr -IC:/ncs/v3.0.0/zephyr/include -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated -IC:/ncs/v3.0.0/zephyr/soc/nordic -IC:/ncs/v3.0.0/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.0.0/zephyr/soc/nordic/common/. -IC:/ncs/v3.0.0/zephyr/subsys/bluetooth -IC:/ncs/v3.0.0/zephyr/subsys/settings/include -IC:/ncs/v3.0.0/nrf/include -IC:/ncs/v3.0.0/nrf/lib/multithreading_lock/. -IC:/ncs/v3.0.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.0.0/nrf/subsys/settings/include -IC:/ncs/v3.0.0/zephyr/drivers/flash -IC:/ncs/v3.0.0/nrf/tests/include -IC:/ncs/v3.0.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.0.0/zephyr/modules/cmsis/. -IC:/ncs/v3.0.0/nrf/modules/hal_nordic/. -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v3.0.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.0.0/nrfxlib/softdevice_controller/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/simple_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.0.0/nrfxlib/mpsl/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/include/protocol -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/generated/library_nrf_security_psa -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sicrypto/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include/library -isystem C:/ncs/v3.0.0/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.0.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:/SpaceX/nRF54_NCSDK/Stylus_290=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.0.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.0.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/bt_spi_stylus.c.obj -MF CMakeFiles\app.dir\src\bt_spi_stylus.c.obj.d -o CMakeFiles/app.dir/src/bt_spi_stylus.c.obj -c C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c
    In file included from C:/ncs/v3.0.0/zephyr/include/zephyr/arch/arm/arch.h:20,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/arch/cpu.h:19,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/cbprintf_internal.h:17,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/cbprintf.h:124,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/logging/log_msg.h:11,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/logging/log_core.h:9,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/logging/log.h:11,
    from C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:8:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h:16403:34: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_spi_max_frequency' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_4a000_S_mx25r6435f_0_P_spi_max_frequency'?
    16403 | #define DT_N_NODELABEL_mysensor2 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5231:29: note: in definition of macro 'DT_CAT3'
    5231 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:349:30: note: in expansion of macro 'DT_PROP'
    349 | .frequency = DT_PROP(node_id, spi_max_frequency), \
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
    404 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:30: note: in expansion of macro 'SPI_DT_SPEC_GET'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5229:24: note: in expansion of macro 'DT_N_NODELABEL_mysensor2'
    5229 | #define DT_CAT(a1, a2) a1 ## a2
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
    196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:17:19: note: in expansion of macro 'DT_NODELABEL'
    17 | #define SPI_NODE DT_NODELABEL(mysensor2)
    | ^~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:46: note: in expansion of macro 'SPI_NODE'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h:16403:34: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_duplex' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_reg'?
    16403 | #define DT_N_NODELABEL_mysensor2 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5231:29: note: in definition of macro 'DT_CAT3'
    5231 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:351:25: note: in expansion of macro 'DT_PROP'
    351 | DT_PROP(node_id, duplex) | \
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
    404 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:30: note: in expansion of macro 'SPI_DT_SPEC_GET'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5229:24: note: in expansion of macro 'DT_N_NODELABEL_mysensor2'
    5229 | #define DT_CAT(a1, a2) a1 ## a2
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
    196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:17:19: note: in expansion of macro 'DT_NODELABEL'
    17 | #define SPI_NODE DT_NODELABEL(mysensor2)
    | ^~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:46: note: in expansion of macro 'SPI_NODE'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h:16403:34: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_frame_format' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_reg'?
    16403 | #define DT_N_NODELABEL_mysensor2 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5231:29: note: in definition of macro 'DT_CAT3'
    5231 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:352:25: note: in expansion of macro 'DT_PROP'
    352 | DT_PROP(node_id, frame_format) | \
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
    404 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:30: note: in expansion of macro 'SPI_DT_SPEC_GET'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5229:24: note: in expansion of macro 'DT_N_NODELABEL_mysensor2'
    5229 | #define DT_CAT(a1, a2) a1 ## a2
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
    196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:17:19: note: in expansion of macro 'DT_NODELABEL'
    17 | #define SPI_NODE DT_NODELABEL(mysensor2)
    | ^~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:46: note: in expansion of macro 'SPI_NODE'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~
    [226/372] Building C object CMakeFiles/app.dir/src/main.c.obj
    In file included from C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:21:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c: In function 'advertising_continue':
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:1093:24: warning: 'BT_LE_ADV_OPT_CONNECTABLE' is deprecated [-Wdeprecated-declarations]
    1093 | ((const struct bt_le_adv_param[]) { \
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:1106:9: note: in expansion of macro 'BT_LE_ADV_PARAM'
    1106 | BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE, BT_GAP_ADV_FAST_INT_MIN_2, \
    | ^~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:242:22: note: in expansion of macro 'BT_LE_ADV_CONN'
    242 | adv_param = *BT_LE_ADV_CONN;
    | ^~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:638:9: note: declared here
    638 | BT_LE_ADV_OPT_CONNECTABLE __deprecated = BIT(0),
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:242:20: warning: Macro is deprecated
    242 | adv_param = *BT_LE_ADV_CONN;
    | ^~~~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:243:9: warning: 'BT_LE_ADV_OPT_ONE_TIME' is deprecated [-Wdeprecated-declarations]
    243 | adv_param.options |= BT_LE_ADV_OPT_ONE_TIME;
    | ^~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:668:9: note: declared here
    668 | BT_LE_ADV_OPT_ONE_TIME __deprecated = BIT(1),
    | ^~~~~~~~~~~~~~~~~~~~~~
    [230/372] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_grtc_timer.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/Stylus_290-prefix/src/Stylus_290-stamp/Stylus_290-build C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/sysbuild/images/Stylus_290-prefix/src/Stylus_290-stamp/Stylus_290-build
    cmd.exe /C "cd /D C:\SpaceX\nRF54_NCSDK\Stylus_290\PCA10156_0_9_1\Stylus_290 && C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' --build C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1
    
    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.
    
    

    Your help is greatly appreciated.

    BR,
    CY

Reply
  • Hi  ,
    Thank you for your reply.
    Yes, those are error messages from "Proglems" tab.
    And the error seems could not be ignored as the program could not be built successfully.
    Below is the entire build lot for your reference:

    Executing task: nRF Connect: Build [pristine]: Stylus_290/PCA10156_0_9_1
    
    Building Stylus_290
    C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1 c:/SpaceX/nRF54_NCSDK/Stylus_290 --pristine --board nrf54l15dk/nrf54l15/cpuapp --sysbuild -- -DBOARD_ROOT=c:/ncs/v3.0.0/nrf/spi_nrfx_wedy;c:/ncs/v3.0.0/nrf/ncs-fund-main/sharma_spi"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    Parsing c:/SpaceX/nRF54_NCSDK/Stylus_290/Kconfig.sysbuild
    Loaded configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/empty.conf'
    Merged configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/empty.conf'
    Configuration saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/zephyr/.config'
    Kconfig header saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/autoconf.h'
    --
    ********************************
    * Running CMake for Stylus_290 *
    ********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/SpaceX/nRF54_NCSDK/Stylus_290
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Found devicetree overlay: C:/SpaceX/nRF54_NCSDK/Stylus_290/nrf54l15dk_nrf54l15_cpuapp.overlay
    -- Generated zephyr.dts: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/zephyr.dts
    -- Generated pickled edt: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/dts.cmake
    
    warning: Deprecated symbol NFCT_PINS_AS_GPIOS is enabled.
    
    
    warning: Deprecated symbol BT_DIS_MANUF_DEPRECATED_USED is enabled.
    
    
    warning: Experimental symbol BT_HCI_ERR_TO_STR is enabled.
    
    Parsing C:/SpaceX/nRF54_NCSDK/Stylus_290/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
    Merged configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/prj.conf'
    Merged configuration 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/.config.sysbuild'
    Configuration saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/.config'
    Kconfig header saved to 'C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/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/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/subsys/bluetooth/host/CMakeLists.txt:83 (message):
    One of these options are enabled:
    
    CONFIG_BT_SMP_LOG_LEVEL_DBG CONFIG_BT_KEYS_LOG_LEVEL_DBG CONFIG_BT_LOG_SNIFFER_INFO.
    Private security keys such as the LTK will be printed out, do not use in
    production.
    
    
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_library_config ===============
    -- Using ccache: C:/Strawberry/c/bin/ccache.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:2180 (message):
    __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1
    -- west build: building application
    [4/372] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr), build: v4.0.99-ncs1
    [215/372] Building C object CMakeFiles/app.dir/src/bt_uart_stylus.c.obj
    FAILED: CMakeFiles/app.dir/src/bt_uart_stylus.c.obj
    ccache C:\ncs\toolchains\0b393f9e1b\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -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\" -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.0.0/nrf/drivers/mpsl/clock_control -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr -IC:/ncs/v3.0.0/zephyr/include -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated -IC:/ncs/v3.0.0/zephyr/soc/nordic -IC:/ncs/v3.0.0/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.0.0/zephyr/soc/nordic/common/. -IC:/ncs/v3.0.0/zephyr/subsys/bluetooth -IC:/ncs/v3.0.0/zephyr/subsys/settings/include -IC:/ncs/v3.0.0/nrf/include -IC:/ncs/v3.0.0/nrf/lib/multithreading_lock/. -IC:/ncs/v3.0.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.0.0/nrf/subsys/settings/include -IC:/ncs/v3.0.0/zephyr/drivers/flash -IC:/ncs/v3.0.0/nrf/tests/include -IC:/ncs/v3.0.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.0.0/zephyr/modules/cmsis/. -IC:/ncs/v3.0.0/nrf/modules/hal_nordic/. -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v3.0.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.0.0/nrfxlib/softdevice_controller/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/simple_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.0.0/nrfxlib/mpsl/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/include/protocol -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/generated/library_nrf_security_psa -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sicrypto/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include/library -isystem C:/ncs/v3.0.0/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.0.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:/SpaceX/nRF54_NCSDK/Stylus_290=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.0.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.0.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/bt_uart_stylus.c.obj -MF CMakeFiles\app.dir\src\bt_uart_stylus.c.obj.d -o CMakeFiles/app.dir/src/bt_uart_stylus.c.obj -c C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c
    In file included from C:/ncs/v3.0.0/zephyr/include/zephyr/toolchain/gcc.h:98,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/toolchain.h:50,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/__assert.h:11,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/byteorder.h:16,
    from C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:6:
    C:/ncs/v3.0.0/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_113' undeclared here (not in a function); did you mean '__device_dts_ord_11'?
    96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    C:/ncs/v3.0.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/v3.0.0/zephyr/include/zephyr/device.h:96:33: note: in expansion of macro '_CONCAT'
    96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/device.h:237:37: note: in expansion of macro 'DEVICE_NAME_GET'
    237 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/device.h:254:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
    254 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
    | ^~~~~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:16:39: note: in expansion of macro 'DEVICE_DT_GET'
    16 | const struct device *const uart_dev = DEVICE_DT_GET(DT_NODELABEL(uart21));
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c: In function 'uart_cb':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:113:26: warning: unused variable 'tx_data' [-Wunused-variable]
    113 | s_uart_tx_data_t tx_data;
    | ^~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c: At top level:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_uart_stylus.c:50:22: warning: 'rx_buffer' defined but not used [-Wunused-variable]
    50 | static s_rx_buffer_t rx_buffer[3];
    | ^~~~~~~~~
    [222/372] Building C object CMakeFiles/app.dir/src/bt_hid_stylus.c.obj
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'hids_feat_rep_handler':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:124:14: warning: unused variable 'addr' [-Wunused-variable]
    124 | char addr[BT_ADDR_LE_STR_LEN];
    | ^~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'hids_pm_evt_handler':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:144:16: warning: unused variable 'i' [-Wunused-variable]
    144 | size_t i;
    | ^
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'hid_init':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:200:39: warning: unused variable 'hids_feat_rep' [-Wunused-variable]
    200 | struct bt_hids_outp_feat_rep *hids_feat_rep;
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: In function 'bt_hid_stylus_init':
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:356:13: warning: unused variable 'err' [-Wunused-variable]
    356 | int err;
    | ^~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c: At top level:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_hid_stylus.c:120:13: warning: 'hids_feat_rep_handler' defined but not used [-Wunused-function]
    120 | static void hids_feat_rep_handler (struct bt_hids_rep *rep,
    | ^~~~~~~~~~~~~~~~~~~~~
    [224/372] Building C object CMakeFiles/app.dir/src/bt_spi_stylus.c.obj
    FAILED: CMakeFiles/app.dir/src/bt_spi_stylus.c.obj
    ccache C:\ncs\toolchains\0b393f9e1b\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -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\" -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.0.0/nrf/drivers/mpsl/clock_control -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr -IC:/ncs/v3.0.0/zephyr/include -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated -IC:/ncs/v3.0.0/zephyr/soc/nordic -IC:/ncs/v3.0.0/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.0.0/zephyr/soc/nordic/common/. -IC:/ncs/v3.0.0/zephyr/subsys/bluetooth -IC:/ncs/v3.0.0/zephyr/subsys/settings/include -IC:/ncs/v3.0.0/nrf/include -IC:/ncs/v3.0.0/nrf/lib/multithreading_lock/. -IC:/ncs/v3.0.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.0.0/nrf/subsys/settings/include -IC:/ncs/v3.0.0/zephyr/drivers/flash -IC:/ncs/v3.0.0/nrf/tests/include -IC:/ncs/v3.0.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.0.0/zephyr/modules/cmsis/. -IC:/ncs/v3.0.0/nrf/modules/hal_nordic/. -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.0.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v3.0.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.0.0/nrfxlib/softdevice_controller/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/simple_gpio/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.0.0/nrfxlib/mpsl/include -IC:/ncs/v3.0.0/nrfxlib/mpsl/include/protocol -IC:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/generated/library_nrf_security_psa -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/sicrypto/include -IC:/ncs/v3.0.0/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.0.0/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/library -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include -IC:/ncs/v3.0.0/modules/crypto/mbedtls/include/library -isystem C:/ncs/v3.0.0/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.0.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:/SpaceX/nRF54_NCSDK/Stylus_290=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.0.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.0.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/bt_spi_stylus.c.obj -MF CMakeFiles\app.dir\src\bt_spi_stylus.c.obj.d -o CMakeFiles/app.dir/src/bt_spi_stylus.c.obj -c C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c
    In file included from C:/ncs/v3.0.0/zephyr/include/zephyr/arch/arm/arch.h:20,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/arch/cpu.h:19,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/cbprintf_internal.h:17,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/sys/cbprintf.h:124,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/logging/log_msg.h:11,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/logging/log_core.h:9,
    from C:/ncs/v3.0.0/zephyr/include/zephyr/logging/log.h:11,
    from C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:8:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h:16403:34: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_spi_max_frequency' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_4a000_S_mx25r6435f_0_P_spi_max_frequency'?
    16403 | #define DT_N_NODELABEL_mysensor2 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5231:29: note: in definition of macro 'DT_CAT3'
    5231 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:349:30: note: in expansion of macro 'DT_PROP'
    349 | .frequency = DT_PROP(node_id, spi_max_frequency), \
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
    404 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:30: note: in expansion of macro 'SPI_DT_SPEC_GET'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5229:24: note: in expansion of macro 'DT_N_NODELABEL_mysensor2'
    5229 | #define DT_CAT(a1, a2) a1 ## a2
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
    196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:17:19: note: in expansion of macro 'DT_NODELABEL'
    17 | #define SPI_NODE DT_NODELABEL(mysensor2)
    | ^~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:46: note: in expansion of macro 'SPI_NODE'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h:16403:34: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_duplex' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_reg'?
    16403 | #define DT_N_NODELABEL_mysensor2 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5231:29: note: in definition of macro 'DT_CAT3'
    5231 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:351:25: note: in expansion of macro 'DT_PROP'
    351 | DT_PROP(node_id, duplex) | \
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
    404 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:30: note: in expansion of macro 'SPI_DT_SPEC_GET'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5229:24: note: in expansion of macro 'DT_N_NODELABEL_mysensor2'
    5229 | #define DT_CAT(a1, a2) a1 ## a2
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
    196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:17:19: note: in expansion of macro 'DT_NODELABEL'
    17 | #define SPI_NODE DT_NODELABEL(mysensor2)
    | ^~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:46: note: in expansion of macro 'SPI_NODE'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/Stylus_290/zephyr/include/generated/zephyr/devicetree_generated.h:16403:34: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_frame_format' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0_P_reg'?
    16403 | #define DT_N_NODELABEL_mysensor2 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_mysensor2_0
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5231:29: note: in definition of macro 'DT_CAT3'
    5231 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:352:25: note: in expansion of macro 'DT_PROP'
    352 | DT_PROP(node_id, frame_format) | \
    | ^~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
    404 | .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
    | ^~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:30: note: in expansion of macro 'SPI_DT_SPEC_GET'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:5229:24: note: in expansion of macro 'DT_N_NODELABEL_mysensor2'
    5229 | #define DT_CAT(a1, a2) a1 ## a2
    | ^~
    C:/ncs/v3.0.0/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
    196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:17:19: note: in expansion of macro 'DT_NODELABEL'
    17 | #define SPI_NODE DT_NODELABEL(mysensor2)
    | ^~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/bt_spi_stylus.c:20:46: note: in expansion of macro 'SPI_NODE'
    20 | struct spi_dt_spec spispec = SPI_DT_SPEC_GET(SPI_NODE, SPIOP, 0);
    | ^~~~~~~~
    [226/372] Building C object CMakeFiles/app.dir/src/main.c.obj
    In file included from C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:21:
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c: In function 'advertising_continue':
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:1093:24: warning: 'BT_LE_ADV_OPT_CONNECTABLE' is deprecated [-Wdeprecated-declarations]
    1093 | ((const struct bt_le_adv_param[]) { \
    | ^~~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:1106:9: note: in expansion of macro 'BT_LE_ADV_PARAM'
    1106 | BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE, BT_GAP_ADV_FAST_INT_MIN_2, \
    | ^~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:242:22: note: in expansion of macro 'BT_LE_ADV_CONN'
    242 | adv_param = *BT_LE_ADV_CONN;
    | ^~~~~~~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:638:9: note: declared here
    638 | BT_LE_ADV_OPT_CONNECTABLE __deprecated = BIT(0),
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:242:20: warning: Macro is deprecated
    242 | adv_param = *BT_LE_ADV_CONN;
    | ^~~~~~~~~~~~~~~~~
    C:/SpaceX/nRF54_NCSDK/Stylus_290/src/main.c:243:9: warning: 'BT_LE_ADV_OPT_ONE_TIME' is deprecated [-Wdeprecated-declarations]
    243 | adv_param.options |= BT_LE_ADV_OPT_ONE_TIME;
    | ^~~~~~~~~
    C:/ncs/v3.0.0/zephyr/include/zephyr/bluetooth/bluetooth.h:668:9: note: declared here
    668 | BT_LE_ADV_OPT_ONE_TIME __deprecated = BIT(1),
    | ^~~~~~~~~~~~~~~~~~~~~~
    [230/372] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_grtc_timer.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/Stylus_290-prefix/src/Stylus_290-stamp/Stylus_290-build C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1/_sysbuild/sysbuild/images/Stylus_290-prefix/src/Stylus_290-stamp/Stylus_290-build
    cmd.exe /C "cd /D C:\SpaceX\nRF54_NCSDK\Stylus_290\PCA10156_0_9_1\Stylus_290 && C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' --build C:/SpaceX/nRF54_NCSDK/Stylus_290/PCA10156_0_9_1
    
    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.
    
    

    Your help is greatly appreciated.

    BR,
    CY

Children
No Data
Related