Hello,
I’ve git cloned https://github.com/circuitdojo/air-quality-wing-zephyr-demo, updated cmake
to its version 3.21.1, update Zephyr-sdk to version 0.13.0. After cloning the CircuitDojo’s AQW driver demo I ran west init .
, west zephyr-export
, west update
. Attempting to build the demo I am now facing the following dts binding error:
devicetree error: 'enable-gpios' appears in /soc/i2c@40003000/sgp40@59 in nrf52840dk_nrf52840.dts.pre.tmp, but is not declared in 'properties:' in /home/cpguest/embedded/air-quality-wing-jared-wolff/demo/zephyr/dts/bindings/sensor/sensirion,sgp40.yaml
I’ve opened this file, searched on line for about ninety minutes now, for documents on how to include a property which I surmise should be typed in as gpios-enabled:
beneath the properties section of this bindings file. The closest answer I can find is https://docs.zephyrproject.org/latest/guides/dts/bindings.html#id13. I’m wondering however, whether this demo is building without errors for its developer? If yes, why am I seeing them?
Full build messages here:
ted@localhost:~/embedded/air-quality-wing-jared-wolff/demo$ west build -b nrf52840dk_nrf52840 -p
-- west build: making build dir /home/cpguest/embedded/air-quality-wing-jared-wolff/demo/build pristine
-- west build: generating a build system
-- Build type: debug 🚀
Including boilerplate (Zephyr base): /home/cpguest/embedded/air-quality-wing-jared-wolff/demo/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
The OLD behavior for policy CMP0079 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:22 (find_package)
-- Application: /home/cpguest/embedded/air-quality-wing-jared-wolff/demo
-- Zephyr version: 2.6.99 (/home/cpguest/embedded/air-quality-wing-jared-wolff/demo/zephyr), build: zephyr-v2.6.0-2378-g5d988fde057f
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: /home/cpguest/.cache/zephyr
-- Using toolchain: zephyr 0.13.0 (/opt/zephyr-sdk-0.13.0)
-- Found dtc: /opt/zephyr-sdk-0.13.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/cpguest/embedded/air-quality-wing-jared-wolff/demo/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/cpguest/embedded/air-quality-wing-jared-wolff/demo/boards/nrf52840dk_nrf52840.overlay
devicetree error: 'enable-gpios' appears in /soc/i2c@40003000/sgp40@59 in nrf52840dk_nrf52840.dts.pre.tmp, but is not declared in 'properties:' in /home/cpguest/embedded/air-quality-wing-jared-wolff/demo/zephyr/dts/bindings/sensor/sensirion,sgp40.yaml
CMake Error at zephyr/cmake/dts.cmake:246 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
zephyr/cmake/app/boilerplate.cmake:553 (include)
zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:22 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/cpguest/embedded/air-quality-wing-jared-wolff/demo/build -S/home/cpguest/embedded/air-quality-wing-jared-wolff/demo -GNinja -DBOARD=nrf52840dk_nrf52840
ted@localhost:~/embedded/air-quality-wing-jared-wolff/demo$