Generate Build going wrong

Hi there,

i'm progrmming a Lcd over SPI but i got this failure once generate the build :

************************************************

 *  Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for /home/sram/course/l1_e1_1 

Building l1_e1_1
west build --build-dir /home/xyz/course/l1_e1_1/build_2 /home/xyz/course/l1_e1_1 --pristine --board nrf52840dk/nrf52840 -- -DCONF_FILE=prj.conf -DDTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840.overlay -DBOARD_ROOT=/home/sram/course/l1_e1_1

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/sram/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /home/sram/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
Parsing /home/sram/ncs/v3.0.2/zephyr/share/sysbuild/Kconfig
Loaded configuration '/home/xyz/course/l1_e1_1/build_2/_sysbuild/empty.conf'
Merged configuration '/home/xyz/course/l1_e1_1/build_2/_sysbuild/empty.conf'
Configuration saved to '/home/xyz/course/l1_e1_1/build_2/zephyr/.config'
Kconfig header saved to '/home/xyz/course/l1_e1_1/build_2/_sysbuild/autoconf.h'
-- 
   *****************************
   * Running CMake for l1_e1_1 *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: /home/xyz/course/l1_e1_1
-- CMake version: 3.21.0
-- Found Python3: /home/xyz/ncs/toolchains/7cbc0036f4/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /home/sram/.cache/zephyr
-- Zephyr version: 4.0.99 (/home/sram/ncs/v3.0.2/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 (/home/sram/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/home/sram/ncs/toolchains/7cbc0036f4/opt/zephyr-sdk)
-- Found Dtc: /home/sram/ncs/toolchains/7cbc0036f4/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/sram/ncs/v3.0.2/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: boards/nrf52840dk_nrf52840.overlay
usage: gen_edt.py [-h] --dts DTS [--dtc-flags DTC_FLAGS] --bindings-dirs
                  BINDINGS_DIRS [BINDINGS_DIRS ...] --dts-out DTS_OUT
                  --edt-pickle-out EDT_PICKLE_OUT
                  [--vendor-prefixes VENDOR_PREFIXES] [--edtlib-Werror]
gen_edt.py: error: argument --dtc-flags: expected one argument
CMake Error at /home/sram/ncs/v3.0.2/zephyr/cmake/modules/dts.cmake:307 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 2"

Call Stack (most recent call first):
  /home/sram/ncs/v3.0.2/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  /home/sram/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/sram/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: l1_e1_1

  Location: /home/sram/course/l1_e1_1
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:21 (include)
  /home/xyz/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /home/xyz/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /home/xyz/ncs/v3.0.2/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/sram/course/l1_e1_1/build_2/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/sram/ncs/toolchains/7cbc0036f4/usr/local/bin/cmake -DWEST_PYTHON=/home/sram/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 -B/home/sram/course/l1_e1_1/build_2 -GNinja -DBOARD=nrf52840dk/nrf52840 -DCONF_FILE=prj.conf -DDTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840.overlay -DBOARD_ROOT=/home/sram/course/l1_e1_1 -S/home/sram/ncs/v3.0.2/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/sram/course/l1_e1_1

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

************************************************


Hardware & software :
- nrf52840
- LCD Adafruit ili9341
- OS : Ubuntu

- VSCode & West

Kind Regards,

  • Hi,

    It seems like there could be some issues with your devicetree overlay. Can you share nrf52840dk_nrf52840.overlay?

    Best regards,
    Marte

  • Hi Marte, 
    Thanks for fast support
    Here is the overlay file :

    /* STEP 2.1 - Add the SPI peripheral to spi1 */
    &i2c0 { status = "disabled";};
    &spi0 { status = "disabled";};
    &i2c1 { status = "disabled";};

    &spi1 {
    status = "okay";
    cs-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;

    ili9341@0 {
    compatible = "ilitek,ili9341";
    reg = <0>;
    spi-max-frequency = <8000000>;

    reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
    dc-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;

    width = <240>;
    height = <320>;
    rotation = <0>;

    backlight-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
    gamset = [00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13>;
    };
    };
Related