Facing the issue with the nrf52840-nrf52840dk.overlay file

Hi , am working on nrf52840 .with nrf desktop v2.9.1 . I am working on display ST7789V with the nrf52840 using Zephyr. I have integrated overlay file . while working on it am facing the issue like MiPi_dbi error . even though i integrated it still it is not getting fixed . my .overlay file is as follows: 

/ {
    chosen {
        zephyr,display = &st7789v;
    };
};

/* Configure SPI2 for the display */
&spi2 {
    compatible = "nordic,nrf-spi";
    status = "okay";
    sck-pin = <13>;
    mosi-pin = <15>;
    cs-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;

    st7789v: st7789v@0 {
        compatible = "sitronix,st7789v";
        reg = <0>;
        spi-max-frequency = <8000000>;
        label = "ST7789V";

        dc-gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
        reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
        backlight-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;

        width = <240>;
        height = <240>;
        pixel-format = "rgb565";

        x-offset = <0>;
        y-offset = <0>;

        /* Add missing MIPI-DBI property */
        mipi-mode = <0x02>; /* SPI 4-wire mode */
        buswidth = <8>;

        gctrl = <0x35>;
        vcom = <0x19>;
        vrhs = <0x12>;
        vdvs = <0x20>;
        mdac = <0x00>;
        lcm = <0x2c>;
        colmod = <0x05>;
        gamma = <0x01>;

        porch-param = [0C 0C 00 33 33];
        cmd2en-param = [5A 69 02 01];
        pwctrl1-param = [A4 A1];
        pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
        nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
        ram-param = [00 F0];
        rgb-param = [CD 08 14];
    };
};
also attaching my proj.conf file as awell
# Enable logging
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4

# Enable display support
CONFIG_DISPLAY=y
CONFIG_DISPLAY_LOG_LEVEL_DBG=y

# Enable ST7789V display driver
CONFIG_ST7789V=y
CONFIG_ST7789V_RGB565=y

# Enable SPI (needed for ST7789V)
CONFIG_SPI=y
CONFIG_SPI_NRFX=y
CONFIG_MIPI_DBI=y

# Enable GPIO (needed for reset, backlight, and DC signals)
CONFIG_GPIO=y
 any leads /how can i resolve this
Parents
  • Hello,

    '' spi-dev = <&st7789v>;'' the spi-dev property in the mipi_dbi node should point to the SPI bus (&spi2), not to the display controller.

    And the nesting of your nodes isn't quite right - the ST7789V should be a child of the MIPI DBI node, but they should be properly separated.

    So, try this

    / {
        chosen {
            zephyr,display = &st7789v;
        };
    };
    
    &spi2 {
        status = "okay";
        sck-pin = <15>;
        mosi-pin = <13>;
        cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
    };
    
    mipi_dbi {
        compatible = "zephyr,mipi-dbi-spi";
        reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
        dc-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
        spi-dev = <&spi2>;
        #address-cells = <1>;
        #size-cells = <0>;
    
        st7789v: st7789v@0 {
            compatible = "sitronix,st7789v";
            reg = <0>;
            mipi-max-frequency = <8000000>;
            width = <240>;
            height = <240>;
            pixel-format = "rgb565";
            x-offset = <0>;
            y-offset = <0>;
            
            buswidth = <8>;
            mipi-mode = <2>; // SPI 4-wire
            
            gctrl = <0x35>;
            vcom = <0x19>;
            vrhs = <0x12>;
            vdvs = <0x20>;
            mdac = <0x00>;
            lcm = <0x2c>;
            colmod = <0x05>;
            gamma = <0x01>;
            
            porch-param = [0C 0C 00 33 33];
            cmd2en-param = [5A 69 02 01];
            pwctrl1-param = [A4 A1];
            pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
            nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
            ram-param = [00 F0];
            rgb-param = [CD 08 14];
            backlight-gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
        };
    };

  • yes . I fixed the overlay issues .  but am now facing the warning with the proj. conf . how to resolve it .  

    my proj.conf is as follows:


    # Logging
    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=4

    # Display framework
    CONFIG_DISPLAY=y
    CONFIG_DISPLAY_LOG_LEVEL_DBG=y

    # ST7789V driver via MIPI-DBI SPI interface
    CONFIG_MIPI_DBI=y
    CONFIG_MIPI_DBI_SPI=y
    #CONFIG_SITRONIX_ST7789V=y
    #CONFIG_SITRONIX_ST7789V_RGB565=y
    CONFIG_DISPLAY_ST7789V=y
    CONFIG_DISPLAY_ST7789V_RGB565=y
     

    # SPI & GPIO drivers
    CONFIG_SPI=y
    CONFIG_SPI_NRFX=y
    CONFIG_GPIO=y
     
    Cmakelists.txt:
    # SPDX-License-Identifier: Apache-2.0

    cmake_minimum_required(VERSION 3.20.0)
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(st7789v_display_example)

    target_sources(app PRIVATE src/main.c)

    # Add the ST7789V driver source file
    #zephyr_library()
    zephyr_library_include_directories(drivers/display)
    zephyr_library_sources(${ZEPHYR_BASE}/drivers/display/display_st7789v.c) . please let me know if anything am miising out?

  • Hello,

    Did you able to run the program?

    Can you please send me the warning in a word file?

  • my proj.conf, .overlay,cmakelist.txt is as follows:

    # Logging
    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=4

    # Display framework
    CONFIG_DISPLAY=y
    CONFIG_DISPLAY_LOG_LEVEL_DBG=y

    # ST7789V driver via MIPI-DBI SPI interface
    CONFIG_MIPI_DBI=y

    CONFIG_ST7789V=y
    CONFIG_ST7789V_RGB565=y
     
    # SPI & GPIO drivers
    CONFIG_SPI=y
    CONFIG_SPI_NRFX=y
    CONFIG_GPIO=y
     
    nrf52840dk_nrf52840.0verlay:
    / {
        chosen {
            zephyr,display = &st7789v;
        };
    };

    &spi2 {
        status = "okay";
        sck-pin = <15>;
        mosi-pin = <13>;
        cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;

        st7789v: st7789v@0 {
            compatible = "sitronix,st7789v";
            reg = <0>;
            spi-max-frequency = <8000000>;
            dc-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
            reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
            status = "okay";
            width = <240>;
            height = <240>;
            pixel-format = "rgb565";
            x-offset = <0>;
            y-offset = <80>;
            mipi-mode = <2>; // 4-wire SPI

            gctrl = <0x35>;
            vcom = <0x19>;
            vrhs = <0x12>;
            vdvs = <0x20>;
            mdac = <0x00>;
            lcm = <0x2c>;
            colmod = <0x05>;
            gamma = <0x01>;

            porch-param = [0C 0C 00 33 33];
            cmd2en-param = [5A 69 02 01];
            pwctrl1-param = [A4 A1];
            pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
            nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
            ram-param = [00 F0];
            rgb-param = [CD 08 14];
        };

    };
     
    cmakelist.txt:
    cmake_minimum_required(VERSION 3.20.0)

    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(st7789v_display_example)

    target_sources(app PRIVATE src/main.c)
    am facing the build issue as shown in the image. can u help me to resolve it as soon as possible
Reply
  • my proj.conf, .overlay,cmakelist.txt is as follows:

    # Logging
    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=4

    # Display framework
    CONFIG_DISPLAY=y
    CONFIG_DISPLAY_LOG_LEVEL_DBG=y

    # ST7789V driver via MIPI-DBI SPI interface
    CONFIG_MIPI_DBI=y

    CONFIG_ST7789V=y
    CONFIG_ST7789V_RGB565=y
     
    # SPI & GPIO drivers
    CONFIG_SPI=y
    CONFIG_SPI_NRFX=y
    CONFIG_GPIO=y
     
    nrf52840dk_nrf52840.0verlay:
    / {
        chosen {
            zephyr,display = &st7789v;
        };
    };

    &spi2 {
        status = "okay";
        sck-pin = <15>;
        mosi-pin = <13>;
        cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;

        st7789v: st7789v@0 {
            compatible = "sitronix,st7789v";
            reg = <0>;
            spi-max-frequency = <8000000>;
            dc-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
            reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
            status = "okay";
            width = <240>;
            height = <240>;
            pixel-format = "rgb565";
            x-offset = <0>;
            y-offset = <80>;
            mipi-mode = <2>; // 4-wire SPI

            gctrl = <0x35>;
            vcom = <0x19>;
            vrhs = <0x12>;
            vdvs = <0x20>;
            mdac = <0x00>;
            lcm = <0x2c>;
            colmod = <0x05>;
            gamma = <0x01>;

            porch-param = [0C 0C 00 33 33];
            cmd2en-param = [5A 69 02 01];
            pwctrl1-param = [A4 A1];
            pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
            nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
            ram-param = [00 F0];
            rgb-param = [CD 08 14];
        };

    };
     
    cmakelist.txt:
    cmake_minimum_required(VERSION 3.20.0)

    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(st7789v_display_example)

    target_sources(app PRIVATE src/main.c)
    am facing the build issue as shown in the image. can u help me to resolve it as soon as possible
Children
  • Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for c:\ncs\v2.9.1\zephyr\samples\st7789v_minimal_sample 
    
    Building st7789v_minimal_sample
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing C:/ncs/v2.9.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/empty.conf'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/empty.conf'
    Configuration saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/autoconf.h'
    -- 
       ********************************************
       * Running CMake for st7789v_minimal_sample *
       ********************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/dts.cmake
    
    warning: ST7789V (defined at drivers/display/Kconfig.st7789v:6) was assigned the value 'y' but got
    the value 'n'. Check these unsatisfied dependencies: DT_HAS_SITRONIX_ST7789V_ENABLED (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V and/or look up ST7789V in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: MIPI_DBI_SPI (defined at drivers/mipi_dbi/Kconfig.spi:4) was assigned the value 'y' but got
    the value 'n'. Check these unsatisfied dependencies: DT_HAS_ZEPHYR_MIPI_DBI_SPI_ENABLED (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MIPI_DBI_SPI and/or look up MIPI_DBI_SPI in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: The choice symbol ST7789V_RGB565 (defined at drivers/display/Kconfig.st7789v:24) was
    selected (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V_RGB565 and/or look up
    ST7789V_RGB565 in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: Experimental symbol MIPI_DBI is enabled.
    
    Parsing C:/ncs/v2.9.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/prj.conf'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Setting build type to 'MinSizeRel' as none was specified.
    -- Using ccache: C:/Strawberry/c/bin/ccache.exe
    CMake Warning at C:/ncs/v2.9.1/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__display
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build
    -- west build: building application
    [4/158] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr), build: v3.7.99-ncs2-1
    [13/158] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj 
    ccache C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DNRF52840_XXAA -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/drivers/display -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr -IC:/ncs/v2.9.1/zephyr/include -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated -IC:/ncs/v2.9.1/zephyr/soc/nordic -IC:/ncs/v2.9.1/zephyr/soc/nordic/nrf52/. -IC:/ncs/v2.9.1/zephyr/soc/nordic/common/. -IC:/ncs/v2.9.1/nrf/include -IC:/ncs/v2.9.1/nrf/tests/include -IC:/ncs/v2.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.9.1/zephyr/modules/cmsis/. -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.9.1/modules/debug/segger/SEGGER -IC:/ncs/v2.9.1/modules/debug/segger/Config -isystem C:/ncs/v2.9.1/zephyr/lib/libc/common/include -isystem C:/ncs/v2.9.1/nrfxlib/crypto/nrf_cc310_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:7:6: warning: return type of 'main' is not 'int' [-Wmain]
        7 | void main(void)
          |      ^~~~
    In file included from C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain/gcc.h:98,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain.h:50,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/kernel_includes.h:23,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/kernel.h:17,
                     from C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:2:
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c: In function 'main':
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_display_ORD' undeclared (first use in this function)
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    C:/ncs/v2.9.1/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.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
      229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:9:36: note: in expansion of macro 'DEVICE_DT_GET'
        9 |     const struct device *display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
          |                                    ^~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:92:41: note: each undeclared identifier is reported only once for each function it appears in
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    C:/ncs/v2.9.1/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.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
      229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:9:36: note: in expansion of macro 'DEVICE_DT_GET'
        9 |     const struct device *display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
          |                                    ^~~~~~~~~~~~~
    [18/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/st7789v_minimal_sample-prefix/src/st7789v_minimal_sample-stamp/st7789v_minimal_sample-build C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/sysbuild/images/st7789v_minimal_sample-prefix/src/st7789v_minimal_sample-stamp/st7789v_minimal_sample-build 
    cmd.exe /C "cd /D C:\ncs\v2.9.1\zephyr\samples\st7789v_minimal_sample\build\st7789v_minimal_sample && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for c:\ncs\v2.9.1\zephyr\samples\st7789v_minimal_sample 
    
    Building st7789v_minimal_sample
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing C:/ncs/v2.9.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/empty.conf'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/empty.conf'
    Configuration saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/autoconf.h'
    -- 
       ********************************************
       * Running CMake for st7789v_minimal_sample *
       ********************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/dts.cmake
    
    warning: ST7789V (defined at drivers/display/Kconfig.st7789v:6) was assigned the value 'y' but got
    the value 'n'. Check these unsatisfied dependencies: DT_HAS_SITRONIX_ST7789V_ENABLED (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V and/or look up ST7789V in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: MIPI_DBI_SPI (defined at drivers/mipi_dbi/Kconfig.spi:4) was assigned the value 'y' but got
    the value 'n'. Check these unsatisfied dependencies: DT_HAS_ZEPHYR_MIPI_DBI_SPI_ENABLED (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MIPI_DBI_SPI and/or look up MIPI_DBI_SPI in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: The choice symbol ST7789V_RGB565 (defined at drivers/display/Kconfig.st7789v:24) was
    selected (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V_RGB565 and/or look up
    ST7789V_RGB565 in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: Experimental symbol MIPI_DBI is enabled.
    
    Parsing C:/ncs/v2.9.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/prj.conf'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Setting build type to 'MinSizeRel' as none was specified.
    -- Using ccache: C:/Strawberry/c/bin/ccache.exe
    CMake Warning at C:/ncs/v2.9.1/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__display
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build
    -- west build: building application
    [4/158] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr), build: v3.7.99-ncs2-1
    [12/158] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj 
    ccache C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DNRF52840_XXAA -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr -IC:/ncs/v2.9.1/zephyr/include -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated -IC:/ncs/v2.9.1/zephyr/soc/nordic -IC:/ncs/v2.9.1/zephyr/soc/nordic/nrf52/. -IC:/ncs/v2.9.1/zephyr/soc/nordic/common/. -IC:/ncs/v2.9.1/nrf/include -IC:/ncs/v2.9.1/nrf/tests/include -IC:/ncs/v2.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.9.1/zephyr/modules/cmsis/. -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.9.1/modules/debug/segger/SEGGER -IC:/ncs/v2.9.1/modules/debug/segger/Config -isystem C:/ncs/v2.9.1/zephyr/lib/libc/common/include -isystem C:/ncs/v2.9.1/nrfxlib/crypto/nrf_cc310_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:7:6: warning: return type of 'main' is not 'int' [-Wmain]
        7 | void main(void)
          |      ^~~~
    In file included from C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain/gcc.h:98,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain.h:50,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/kernel_includes.h:23,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/kernel.h:17,
                     from C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:2:
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c: In function 'main':
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_display_ORD' undeclared (first use in this function)
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    C:/ncs/v2.9.1/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.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
      229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:9:36: note: in expansion of macro 'DEVICE_DT_GET'
        9 |     const struct device *display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
          |                                    ^~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:92:41: note: each undeclared identifier is reported only once for each function it appears in
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    C:/ncs/v2.9.1/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.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
      229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:9:36: note: in expansion of macro 'DEVICE_DT_GET'
        9 |     const struct device *display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
          |                                    ^~~~~~~~~~~~~
    [17/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/st7789v_minimal_sample-prefix/src/st7789v_minimal_sample-stamp/st7789v_minimal_sample-build C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/sysbuild/images/st7789v_minimal_sample-prefix/src/st7789v_minimal_sample-stamp/st7789v_minimal_sample-build 
    cmd.exe /C "cd /D C:\ncs\v2.9.1\zephyr\samples\st7789v_minimal_sample\build\st7789v_minimal_sample && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for c:\ncs\v2.9.1\zephyr\samples\st7789v_minimal_sample 
    
    Building st7789v_minimal_sample
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing C:/ncs/v2.9.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/empty.conf'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/empty.conf'
    Configuration saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/autoconf.h'
    -- 
       ********************************************
       * Running CMake for st7789v_minimal_sample *
       ********************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/dts.cmake
    
    warning: ST7789V (defined at drivers/display/Kconfig.st7789v:6) was assigned the value 'y' but got
    the value 'n'. Check these unsatisfied dependencies: DT_HAS_SITRONIX_ST7789V_ENABLED (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V and/or look up ST7789V in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: The choice symbol ST7789V_RGB565 (defined at drivers/display/Kconfig.st7789v:24) was
    selected (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V_RGB565 and/or look up
    ST7789V_RGB565 in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: Experimental symbol MIPI_DBI is enabled.
    
    Parsing C:/ncs/v2.9.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/prj.conf'
    Merged configuration 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Setting build type to 'MinSizeRel' as none was specified.
    -- Using ccache: C:/Strawberry/c/bin/ccache.exe
    CMake Warning at C:/ncs/v2.9.1/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__display
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build
    -- west build: building application
    [4/158] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr), build: v3.7.99-ncs2-1
    [15/158] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj 
    ccache C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DNRF52840_XXAA -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr -IC:/ncs/v2.9.1/zephyr/include -IC:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated -IC:/ncs/v2.9.1/zephyr/soc/nordic -IC:/ncs/v2.9.1/zephyr/soc/nordic/nrf52/. -IC:/ncs/v2.9.1/zephyr/soc/nordic/common/. -IC:/ncs/v2.9.1/nrf/include -IC:/ncs/v2.9.1/nrf/tests/include -IC:/ncs/v2.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.9.1/zephyr/modules/cmsis/. -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.9.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.9.1/modules/debug/segger/SEGGER -IC:/ncs/v2.9.1/modules/debug/segger/Config -isystem C:/ncs/v2.9.1/zephyr/lib/libc/common/include -isystem C:/ncs/v2.9.1/nrfxlib/crypto/nrf_cc310_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/st7789v_minimal_sample/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:7:6: warning: return type of 'main' is not 'int' [-Wmain]
        7 | void main(void)
          |      ^~~~
    In file included from C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain/gcc.h:98,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/toolchain.h:50,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/kernel_includes.h:23,
                     from C:/ncs/v2.9.1/zephyr/include/zephyr/kernel.h:17,
                     from C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:2:
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c: In function 'main':
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_display_ORD' undeclared (first use in this function)
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    C:/ncs/v2.9.1/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.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
      229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:9:36: note: in expansion of macro 'DEVICE_DT_GET'
        9 |     const struct device *display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
          |                                    ^~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:92:41: note: each undeclared identifier is reported only once for each function it appears in
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    C:/ncs/v2.9.1/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.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
      229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/src/main.c:9:36: note: in expansion of macro 'DEVICE_DT_GET'
        9 |     const struct device *display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
          |                                    ^~~~~~~~~~~~~
    [20/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/st7789v_minimal_sample-prefix/src/st7789v_minimal_sample-stamp/st7789v_minimal_sample-build C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build/_sysbuild/sysbuild/images/st7789v_minimal_sample-prefix/src/st7789v_minimal_sample-stamp/st7789v_minimal_sample-build 
    cmd.exe /C "cd /D C:\ncs\v2.9.1\zephyr\samples\st7789v_minimal_sample\build\st7789v_minimal_sample && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/ncs/v2.9.1/zephyr/samples/st7789v_minimal_sample/build
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    ssss

    buildlogs for your reference

Related