Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apds9960 sensor sample does not build on STM32 #34178

Closed
gudnimg opened this issue Apr 9, 2021 · 2 comments
Closed

apds9960 sensor sample does not build on STM32 #34178

gudnimg opened this issue Apr 9, 2021 · 2 comments
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@gudnimg
Copy link
Contributor

gudnimg commented Apr 9, 2021

Describe the bug
Example for sensor apds9960 doesn't build for board Nucleo L412RB-P, I tried also Nucleo F401RE with same results.

To Reproduce
Steps to reproduce the behavior:

  1. west build -p -b nucleo_l412rb_p samples/sensor/apds9960
  2. See various DT errors

Expected behavior
The example should finish building.

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

Logs and console output

PS C:\Users\Gudni\OneDrive\Desktop\zephyrbase\zephyr> west build -p -b nucleo_l412rb_p samples/sensor/apds9960       
-- west build: making build dir C:\Users\Gudni\OneDrive\Desktop\zephyrbase\zephyr\build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/samples/sensor/apds9960
-- Zephyr version: 2.5.99 (C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr)
-- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.2") found components: Interpreter 
-- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
-- Board: nucleo_l412rb_p
-- Cache files will be written to: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/.cache
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/toolchains/gnu_arm_embedded/10-2020-q4-major)
-- Found BOARD.dts: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts
-- Generated zephyr.dts: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build/zephyr/include/generated/device_extern.h
Parsing C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/Kconfig
Loaded configuration 
'C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p_defconfig'
Merged configuration 'C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/samples/sensor/apds9960/prj.conf'
Configuration saved to 'C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build/zephyr/.config'
Kconfig header saved to 'C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/toolchains/gnu_arm_embedded/10-2020-q4-major/bin/arm-none-eabi-gcc.exe
CMake Deprecation Warning at C:/Users/Gudni/OneDrive/Desktop/zephyrbase/modules/lib/civetweb/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build
-- west build: building application
[64/146] Building C object zephyr/drivers/sensor/apds9960/CMakeFiles/drivers__sensor__apds9960.dir/apds9960.c.obj    
FAILED: zephyr/drivers/sensor/apds9960/CMakeFiles/drivers__sensor__apds9960.dir/apds9960.c.obj 
C:\toolchains\gnu_arm_embedded\10-2020-q4-major\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=zephyr-v2.5.0-2114-gd307bd2fddc0 -DCORE_CM4 -DKERNEL -DSTM32L412xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -I../include -Izephyr/include/generated -I../soc/arm/st_stm32/stm32l4 -I../drivers -I../soc/arm/st_stm32/common -IC:/Users/Gudni/OneDrive/Desktop/zephyrbase/modules/hal/cmsis/CMSIS/Core/Include -IC:/Users/Gudni/OneDrive/Desktop/zephyrbase/modules/hal/stm32/stm32cube/stm32l4xx/soc -IC:/Users/Gudni/OneDrive/Desktop/zephyrbase/modules/hal/stm32/stm32cube/stm32l4xx/drivers/include -IC:/Users/Gudni/OneDrive/Desktop/zephyrbase/modules/hal/stm32/stm32cube/stm32l4xx/drivers/include/Legacy -IC:/Users/Gudni/OneDrive/Desktop/zephyrbase/modules/hal/stm32/stm32cube/common_ll/include -isystem ../lib/libc/minimal/include -isystem c:/toolchains/gnu_arm_embedded/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/include -isystem c:/toolchains/gnu_arm_embedded/10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/include-fixed -Os -imacros C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m4 -mthumb -mabi=aapcs -imacros C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/samples/sensor/apds9960=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/Gudni/OneDrive/Desktop/zephyrbase=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/sensor/apds9960/CMakeFiles/drivers__sensor__apds9960.dir/apds9960.c.obj -MF zephyr\drivers\sensor\apds9960\CMakeFiles\drivers__sensor__apds9960.dir\apds9960.c.obj.d -o zephyr/drivers/sensor/apds9960/CMakeFiles/drivers__sensor__apds9960.dir/apds9960.c.obj -c C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c
In file included from ../include/arch/arm/aarch32/arch.h:20,
                 from ../include/arch/cpu.h:19,
                 from ../include/kernel_includes.h:33,
                 from ../include/kernel.h:17,
                 from ../include/init.h:11,
                 from ../include/device.h:29,
                 from C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:14:       
../include/devicetree.h:300:40: error: 'DT_N_INST_0_avago_apds9960_BUS_P_label' undeclared here (not in a function)  
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
../include/devicetree.h:2251:24: note: in definition of macro 'DT_CAT'
 2251 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
../include/devicetree.h:1701:31: note: in expansion of macro 'DT_PROP'
 1701 | #define DT_BUS_LABEL(node_id) DT_PROP(DT_BUS(node_id), label)
      |                               ^~~~~~~
../include/devicetree.h:1694:25: note: in expansion of macro 'DT_CAT'
 1694 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
      |                         ^~~~~~
../include/devicetree.h:1701:39: note: in expansion of macro 'DT_BUS'
 1701 | #define DT_BUS_LABEL(node_id) DT_PROP(DT_BUS(node_id), label)
      |                                       ^~~~~~
../include/devicetree.h:2047:33: note: in expansion of macro 'DT_BUS_LABEL'
 2047 | #define DT_INST_BUS_LABEL(inst) DT_BUS_LABEL(DT_DRV_INST(inst))
      |                                 ^~~~~~~~~~~~
../include/sys/util_internal.h:84:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   84 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
../include/devicetree.h:300:31: note: in expansion of macro 'UTIL_CAT'
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
../include/devicetree.h:1745:27: note: in expansion of macro 'DT_INST'
 1745 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
../include/devicetree.h:2047:46: note: in expansion of macro 'DT_DRV_INST'
 2047 | #define DT_INST_BUS_LABEL(inst) DT_BUS_LABEL(DT_DRV_INST(inst))
      |                                              ^~~~~~~~~~~
C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:497:14: note: in expansion of macro 'DT_INST_BUS_LABEL'
  497 |  .i2c_name = DT_INST_BUS_LABEL(0),
      |              ^~~~~~~~~~~~~~~~~
../include/devicetree.h:300:40: error: 'DT_N_INST_0_avago_apds9960_REG_IDX_0_VAL_ADDRESS' undeclared here (not in a function); did you mean 'DT_N_S_cpus_S_cpu_0_REG_IDX_0_VAL_ADDRESS'?
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
../include/devicetree.h:2251:24: note: in definition of macro 'DT_CAT'
 2251 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
../include/devicetree.h:1957:44: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
 1957 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                            ^~~~~~~~~~~~~~~~~~
../include/sys/util_internal.h:84:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   84 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
../include/devicetree.h:300:31: note: in expansion of macro 'UTIL_CAT'
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
../include/devicetree.h:1745:27: note: in expansion of macro 'DT_INST'
 1745 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
../include/devicetree.h:1957:63: note: in expansion of macro 'DT_DRV_INST'
 1957 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                                               ^~~~~~~~~~~
../include/devicetree.h:1991:32: note: in expansion of macro 'DT_INST_REG_ADDR_BY_IDX'
 1991 | #define DT_INST_REG_ADDR(inst) DT_INST_REG_ADDR_BY_IDX(inst, 0)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:498:17: note: in expansion of macro 'DT_INST_REG_ADDR'
  498 |  .i2c_address = DT_INST_REG_ADDR(0),
      |                 ^~~~~~~~~~~~~~~~
../include/devicetree.h:300:40: error: 'DT_N_INST_0_avago_apds9960_P_int_gpios_IDX_0_PH_P_label' undeclared here (not in a function)
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
../include/devicetree.h:2251:24: note: in definition of macro 'DT_CAT'
 2251 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
../include/devicetree/gpio.h:103:2: note: in expansion of macro 'DT_PROP'
  103 |  DT_PROP(DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, idx), label)
      |  ^~~~~~~
../include/devicetree.h:1158:2: note: in expansion of macro 'DT_CAT6'
 1158 |  DT_CAT6(node_id, _P_, prop, _IDX_, idx, _PH)
      |  ^~~~~~~
../include/devicetree/gpio.h:54:2: note: in expansion of macro 'DT_PHANDLE_BY_IDX'
   54 |  DT_PHANDLE_BY_IDX(node_id, gpio_pha, idx)
      |  ^~~~~~~~~~~~~~~~~
../include/devicetree/gpio.h:103:10: note: in expansion of macro 'DT_GPIO_CTLR_BY_IDX'
  103 |  DT_PROP(DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, idx), label)
      |          ^~~~~~~~~~~~~~~~~~~
../include/devicetree/gpio.h:237:2: note: in expansion of macro 'DT_GPIO_LABEL_BY_IDX'
  237 |  DT_GPIO_LABEL_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |  ^~~~~~~~~~~~~~~~~~~~
../include/sys/util_internal.h:84:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   84 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
../include/devicetree.h:300:31: note: in expansion of macro 'UTIL_CAT'
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
../include/devicetree.h:1745:27: note: in expansion of macro 'DT_INST'
 1745 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
../include/devicetree/gpio.h:237:23: note: in expansion of macro 'DT_DRV_INST'
  237 |  DT_GPIO_LABEL_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                       ^~~~~~~~~~~
../include/devicetree/gpio.h:247:2: note: in expansion of macro 'DT_INST_GPIO_LABEL_BY_IDX'
  247 |  DT_INST_GPIO_LABEL_BY_IDX(inst, gpio_pha, 0)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:499:15: note: in expansion of macro 'DT_INST_GPIO_LABEL'
  499 |  .gpio_name = DT_INST_GPIO_LABEL(0, int_gpios),
      |               ^~~~~~~~~~~~~~~~~~
../include/devicetree.h:300:40: error: 'DT_N_INST_0_avago_apds9960_P_int_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
../include/devicetree.h:2251:24: note: in definition of macro 'DT_CAT'
 2251 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
../include/devicetree.h:961:2: note: in expansion of macro 'DT_PROP'
  961 |  DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |  ^~~~~~~
../include/devicetree/gpio.h:158:2: note: in expansion of macro 'DT_PHA_BY_IDX'
  158 |  DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |  ^~~~~~~~~~~~~
../include/devicetree/gpio.h:260:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  260 |  DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |  ^~~~~~~~~~~~~~~~~~
../include/sys/util_internal.h:84:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   84 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
../include/devicetree.h:300:31: note: in expansion of macro 'UTIL_CAT'
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
../include/devicetree.h:1745:27: note: in expansion of macro 'DT_INST'
 1745 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
../include/devicetree/gpio.h:260:21: note: in expansion of macro 'DT_DRV_INST'
  260 |  DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                     ^~~~~~~~~~~
../include/devicetree/gpio.h:271:2: note: in expansion of macro 'DT_INST_GPIO_PIN_BY_IDX'
  271 |  DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0)
      |  ^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:500:14: note: in expansion of macro 'DT_INST_GPIO_PIN'
  500 |  .gpio_pin = DT_INST_GPIO_PIN(0, int_gpios),
      |              ^~~~~~~~~~~~~~~~
In file included from C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:14:       
../include/devicetree.h:300:40: error: 'DT_N_INST_0_avago_apds9960_FULL_NAME' undeclared here (not in a function)    
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
../include/device.h:1044:11: note: in definition of macro 'Z_DEVICE_DEFINE'
 1044 |   .name = drv_name,     \
      |           ^~~~~~~~
../include/sys/util_internal.h:64:53: note: in expansion of macro '__DEBRACKET'
   64 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
../include/sys/util_internal.h:59:2: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |  ^~~~~~~~~~~~~~~~~~~~
../include/sys/util_internal.h:54:2: note: in expansion of macro '__COND_CODE'
   54 |  __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |  ^~~~~~~~~~~
../include/sys/util_macro.h:117:2: note: in expansion of macro 'Z_COND_CODE_1'
  117 |  Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |  ^~~~~~~~~~~~~
../include/devicetree.h:636:2: note: in expansion of macro 'COND_CODE_1'
  636 |  COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
      |  ^~~~~~~~~~~
../include/device.h:179:2: note: in expansion of macro 'DT_PROP_OR'
  179 |  DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
      |  ^~~~~~~~~~
../include/devicetree.h:463:36: note: in expansion of macro 'DT_CAT'
  463 | #define DT_NODE_FULL_NAME(node_id) DT_CAT(node_id, _FULL_NAME)
      |                                    ^~~~~~
../include/device.h:179:29: note: in expansion of macro 'DT_NODE_FULL_NAME'
  179 |  DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
      |                             ^~~~~~~~~~~~~~~~~
../include/device.h:222:4: note: in expansion of macro 'DEVICE_DT_NAME'
  222 |    DEVICE_DT_NAME(node_id), init_fn,  \
      |    ^~~~~~~~~~~~~~
../include/device.h:238:2: note: in expansion of macro 'DEVICE_DT_DEFINE'
  238 |  DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~
../include/sys/util_internal.h:84:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   84 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
../include/devicetree.h:300:31: note: in expansion of macro 'UTIL_CAT'
  300 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
../include/devicetree.h:1745:27: note: in expansion of macro 'DT_INST'
 1745 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
../include/device.h:238:19: note: in expansion of macro 'DT_DRV_INST'
  238 |  DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)
      |                   ^~~~~~~~~~~
C:/Users/Gudni/OneDrive/Desktop/zephyrbase/zephyr/drivers/sensor/apds9960/apds9960.c:546:1: note: in expansion of macro 'DEVICE_DT_INST_DEFINE'
  546 | DEVICE_DT_INST_DEFINE(0, apds9960_init,
      | ^~~~~~~~~~~~~~~~~~~~~
[81/146] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\Users\Gudni\OneDrive\Desktop\zephyrbase\zephyr\build'
PS C:\Users\Gudni\OneDrive\Desktop\zephyrbase\zephyr> 

Environment (please complete the following information):

  • OS: Windows 10
  • Toolchain: ARM GNU 10-2020-q4-major (GCC 10.2.1)
@gudnimg gudnimg added the bug The issue is a bug, or the PR is fixing a bug label Apr 9, 2021
@galak
Copy link
Collaborator

galak commented Apr 9, 2021

You need a devicetree node for the sensor, similar to what is in boards/arm/reel_board/dts/reel_board.dtsi.

This is not a bug, but expected behavior as the board does not support the sensor by default.

@galak galak closed this as completed Apr 9, 2021
@gudnimg
Copy link
Contributor Author

gudnimg commented Apr 9, 2021

Thanks @galak I will take a better look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants