DS18B20 for nRF 52833 bord using NCS and VS code.

Hi , i have been trying to implement the DS18B20 sample of zephyr taken from GitHub 

I am having a lot of trouble in building the code , it comes up with very different errors each time with the same error message

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.0.2\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.0.2\opt\bin\python.exe' '-Bc:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build' '-Sc:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20' -GNinja

Parents
  • Building ds18b20
    west build --build-dir c:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build c:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/ncs/v2.0.2/zephyr/samples/sensor/ds18b20
    -- Cache files will be written to: C:/ncs/v2.0.2/zephyr/.cache
    -- Zephyr version: 3.0.99 (C:/ncs/v2.0.2/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf52833dk_nrf52833
    -- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
    -- Found dtc: C:/ncs/toolchains/v2.0.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.0.2/zephyr/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts
    -- Found devicetree overlay: C:/ncs/v2.0.2/zephyr/samples/sensor/ds18b20/boards/nrf52833dk_nrf52833.overlay
    devicetree error: 'label' is marked as required in 'properties:' in C:/ncs/v2.0.2/zephyr/dts/bindings\w1\zephyr,w1-serial.yaml, but does not appear in <Node /soc/uart@40028000/w1-zephyr-serial-0 in 'C:/ncs/v2.0.2/zephyr/misc/empty_file.c'>
    CMake Error at C:\ncs\v2.0.2\zephyr\cmake\modules\dts.cmake:213 (message):
      gen_defines.py failed with return code: 1
    Call Stack (most recent call first):
      C:\ncs\v2.0.2\zephyr\cmake\modules\zephyr_default.cmake:121 (include)
      C:\ncs\v2.0.2\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:51 (include)
      C:\ncs\v2.0.2\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:81 (include_boilerplate)
      c:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build\CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.0.2\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.0.2\opt\bin\python.exe' '-Bc:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build' '-Sc:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20' -GNinja
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it.

    full log 

Reply
  • Building ds18b20
    west build --build-dir c:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build c:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/ncs/v2.0.2/zephyr/samples/sensor/ds18b20
    -- Cache files will be written to: C:/ncs/v2.0.2/zephyr/.cache
    -- Zephyr version: 3.0.99 (C:/ncs/v2.0.2/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf52833dk_nrf52833
    -- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
    -- Found dtc: C:/ncs/toolchains/v2.0.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.0.2/zephyr/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts
    -- Found devicetree overlay: C:/ncs/v2.0.2/zephyr/samples/sensor/ds18b20/boards/nrf52833dk_nrf52833.overlay
    devicetree error: 'label' is marked as required in 'properties:' in C:/ncs/v2.0.2/zephyr/dts/bindings\w1\zephyr,w1-serial.yaml, but does not appear in <Node /soc/uart@40028000/w1-zephyr-serial-0 in 'C:/ncs/v2.0.2/zephyr/misc/empty_file.c'>
    CMake Error at C:\ncs\v2.0.2\zephyr\cmake\modules\dts.cmake:213 (message):
      gen_defines.py failed with return code: 1
    Call Stack (most recent call first):
      C:\ncs\v2.0.2\zephyr\cmake\modules\zephyr_default.cmake:121 (include)
      C:\ncs\v2.0.2\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:51 (include)
      C:\ncs\v2.0.2\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:81 (include_boilerplate)
      c:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build\CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.0.2\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.0.2\opt\bin\python.exe' '-Bc:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20\build' '-Sc:\ncs\v2.0.2\zephyr\samples\sensor\ds18b20' -GNinja
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it.

    full log 

Children
Related