jaredwolff
Hi Jared!
I’m now making some good progress in building AQW for Zephyr but now get some compilation errors.
- I’ve updated .west/config to below. Thank you.
[manifest]
path = demo
file = west-ncs.yml
[zephyr]
base = zephyr
manifest:
remotes:
- name: nrfconnect
url-base: https://github.com/nrfconnect
projects:
- name: nrf
repo-path: sdk-nrf
remote: nrfconnect
revision: v2.3.0
import: true
- Also, I’ve updated
west-vanilla.yml
to use Zephyr 3.3
manifest:
remotes:
- name: zephyrproject
url-base: https://github.com/zephyrproject-rtos
projects:
- name: zephyr
repo-path: zephyr
remote: zephyrproject
revision: v3.3.0
- Here is my
aqw
project layout in VSCode. Is aqw library at the correct place?
quark11:aqw-test quark11$ tree -L 1
.
├── aqw
├── bootloader
├── demo
├── mbedtls
├── modules
├── nrf
├── nrfxlib
├── test
├── tools
└── zephyr
After west update
, all seems to be ok as far as the project settings.
I’ve tried to build the basic
example for circuitdojo_feather_nrf9160ns
.
As the basic/src/main.c
was for an earlier Zephyr,
I updated the include files to resolve compilation errors by adding zephyr
to the include paths.
#include <zephyr/kernel.h>.
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/devicetree.h>
#include <aqw.h>
#if defined(CONFIG_USB_UART_CONSOLE)
#include <drivers/uart.h>
#include <usb/usb_device.h>
#endif
#include <zephyr/logging/log.h>
After these changes, I still get compilation errors.
I’m getting close to a successful build with NCS 2.3.0 / Zephyr 3.2.99.
Are these errors because aqw library hasn’t been built?
How does aqw the library get built?
How do I fix the build errors below?
* Executing task: west build -b circuitdojo_feather_nrf9160_ns -p
-- west build: making build dir /Users/quark11/Documents/aqw-test/demo/basic/build pristine
-- west build: generating a build system
-- Build type: debug 🚀
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/quark11/Documents/aqw-test/demo/basic
-- Using NCS Toolchain 2.3.0 for building. (/opt/nordic/ncs/toolchains/v2.3.0/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.2.99 (/Users/quark11/Documents/aqw-test/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: circuitdojo_feather_nrf9160_ns
-- Found host-tools: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/quark11/Documents/aqw-test/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns.dts
-- Found devicetree overlay: /Users/quark11/Documents/aqw-test/demo/basic/boards/circuitdojo_feather_nrf9160_ns.overlay
'tx-pin' is marked as deprecated in 'properties:' in /Users/quark11/Documents/aqw-test/zephyr/dts/bindings/serial/nordic,nrf-uarte.yaml for node /soc/peripheral@40000000/uart@a000.
'rx-pin' is marked as deprecated in 'properties:' in /Users/quark11/Documents/aqw-test/zephyr/dts/bindings/serial/nordic,nrf-uarte.yaml for node /soc/peripheral@40000000/uart@a000.
'label' is marked as deprecated in 'properties:' in /Users/quark11/Documents/aqw-test/aqw/dts/bindings/honeywell,hpma115s0.yaml for node /soc/peripheral@40000000/uart@a000/hpma115s0.
'label' is marked as deprecated in 'properties:' in /Users/quark11/Documents/aqw-test/aqw/dts/bindings/sensirion,sgp40cd.yaml for node /soc/peripheral@40000000/i2c@9000/sgp40@59.
'label' is marked as deprecated in 'properties:' in /Users/quark11/Documents/aqw-test/aqw/dts/bindings/sensirion,shtc3cd.yaml for node /soc/peripheral@40000000/i2c@9000/shtc3@70.
-- Generated zephyr.dts: /Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/dts.cmake
Parsing /Users/quark11/Documents/aqw-test/demo/basic/Kconfig
Loaded configuration '/Users/quark11/Documents/aqw-test/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/basic/prj.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/basic/boards/circuitdojo_feather_nrf9160_ns.conf'
Configuration saved to '/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/.config'
Kconfig header saved to '/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found version "3.9.6") found components: Interpreter
Changed board to secure circuitdojo_feather_nrf9160 (NOT NS)
=== child image mcuboot - begin ===
loading initial cache file /Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/quark11/Documents/aqw-test/bootloader/mcuboot/boot/zephyr
-- Using NCS Toolchain 2.3.0 for building. (/opt/nordic/ncs/toolchains/v2.3.0/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.2.99 (/Users/quark11/Documents/aqw-test/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: circuitdojo_feather_nrf9160
-- Found host-tools: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/quark11/Documents/aqw-test/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
-- Found devicetree overlay: /Users/quark11/Documents/aqw-test/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/zephyr/dts.cmake
warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE 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.
Parsing /Users/quark11/Documents/aqw-test/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/Users/quark11/Documents/aqw-test/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig'
Merged configuration '/Users/quark11/Documents/aqw-test/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9160.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/nrf/modules/mcuboot/tfm.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/zephyr/.config'
Kconfig header saved to '/Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /Users/quark11/Documents/aqw-test/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/aqw-test/demo/basic/build/mcuboot
=== child image mcuboot - end ===
CMake Warning at /Users/quark11/Documents/aqw-test/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
---------------------------------------------------------
--- WARNING: Using default MCUBoot key, it should not ---
--- be used for production. ---
---------------------------------------------------------
Dropping partition 'nrf_modem_lib_trace' since its size is 0.
Dropping partition 'nonsecure_storage' since it is empty.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/aqw-test/demo/basic/build
-- west build: building application
[2/268] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/Users/quark11/Documents/aqw-test/zephyr), build: v3.2.99-ncs2
[23/268] Performing build step for 'mcuboot_subimage'
[1/203] Preparing syscall dependency handling
[2/203] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/Users/quark11/Documents/aqw-test/zephyr), build: v3.2.99-ncs2
[193/203] Linking C executable zephyr/zephyr_pre0.elf
[197/203] Linking C executable zephyr/zephyr_pre1.elf
[203/203] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 44204 B 48 KB 89.93%
RAM: 24304 B 32 KB 74.17%
IDT_LIST: 0 GB 2 KB 0.00%
[55/268] Preparing syscall dependency handling
[63/268] Generating ../../tfm/CMakeCache.txt
-- The C compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found version "3.9.6") found components: Interpreter
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/aqw-test/demo/basic/build/tfm
[69/268] Performing build step for 'tfm'
[1/2] Re-running CMake...
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found version "3.9.6") found components: Interpreter
-- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/aqw-test/demo/basic/build/tfm
[172/172] Linking C static library secure_fw/libtfm_s_veneers.a
[73/268] Performing install step for 'tfm'
-- Install configuration: "MinSizeRel"
[115/268] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj
ccache /Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DTFM_PSA_API -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/Users/quark11/Documents/aqw-test/zephyr/include -I/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated -I/Users/quark11/Documents/aqw-test/zephyr/soc/arm/nordic_nrf/nrf91 -I/Users/quark11/Documents/aqw-test/zephyr/lib/libc/newlib/include -I/Users/quark11/Documents/aqw-test/zephyr/soc/arm/nordic_nrf/common/. -I/Users/quark11/Documents/aqw-test/nrf/include -I/Users/quark11/Documents/aqw-test/nrf/include/tfm -I/Users/quark11/Documents/aqw-test/nrf/tests/include -I/Users/quark11/Documents/aqw-test/aqw/drivers/sensirion-common -I/Users/quark11/Documents/aqw-test/aqw/include -I/Users/quark11/Documents/aqw-test/aqw/drivers -I/Users/quark11/Documents/aqw-test/aqw/ext/embedded-sgp/sgp40_voc_index -I/Users/quark11/Documents/aqw-test/modules/lib/golioth/include -I/Users/quark11/Documents/aqw-test/demo/basic/build/tfm/generated/interface/include -I/Users/quark11/Documents/aqw-test/modules/hal/cmsis/CMSIS/Core/Include -I/Users/quark11/Documents/aqw-test/modules/hal/nordic/nrfx -I/Users/quark11/Documents/aqw-test/modules/hal/nordic/nrfx/drivers/include -I/Users/quark11/Documents/aqw-test/modules/hal/nordic/nrfx/mdk -I/Users/quark11/Documents/aqw-test/zephyr/modules/hal_nordic/nrfx/. -I/Users/quark11/Documents/aqw-test/nrfxlib/nrf_modem/include -I/Users/quark11/Documents/aqw-test/demo/basic/build/tfm/install/interface/include -I/Users/quark11/Documents/aqw-test/demo/basic/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -I/Users/quark11/Documents/aqw-test/nrfxlib/nrf_security/include -I/Users/quark11/Documents/aqw-test/nrfxlib/nrf_security/include/mbedtls -I/Users/quark11/Documents/aqw-test/modules/crypto/mbedtls/include -I/Users/quark11/Documents/aqw-test/modules/crypto/mbedtls/include/mbedtls -I/Users/quark11/Documents/aqw-test/modules/crypto/mbedtls/include/psa -I/Users/quark11/Documents/aqw-test/modules/crypto/mbedtls/library -I/Users/quark11/Documents/aqw-test/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/Users/quark11/Documents/aqw-test/nrfxlib/crypto/nrf_oberon/include -fno-strict-aliasing -Os -imacros /Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/Users/quark11/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/arm-zephyr-eabi -imacros /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/Users/quark11/Documents/aqw-test/demo/basic=CMAKE_SOURCE_DIR -fmacro-prefix-map=/Users/quark11/Documents/aqw-test/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/Users/quark11/Documents/aqw-test=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.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 /Users/quark11/Documents/aqw-test/demo/basic/src/main.c
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:37:10: error: 'struct aqw_sensor' has no member named 'dev_name'
37 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:37:13: warning: Macro is deprecated
37 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:19,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/arch/arm/aarch32/arch.h:20,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/arch/cpu.h:19,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/kernel_includes.h:33,
from /Users/quark11/Documents/aqw-test/zephyr/include/zephyr/kernel.h:17,
from /Users/quark11/Documents/aqw-test/demo/basic/src/main.c:6:
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:11736:72: warning: initialization of 'unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
11736 | #define DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label "SHTC3"
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:31: note: in expansion of macro 'DT_LABEL'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_sensirion_shtc3cd'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:21:15: note: in expansion of macro 'DT_INST'
21 | #define SHTC3 DT_INST(0, sensirion_shtc3cd)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:40: note: in expansion of macro 'SHTC3'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:37:21: note: in expansion of macro 'CONFIG_SHTC3_DEV_NAME'
37 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:11736:72: note: (near initialization for 'temperature_sensor.interval')
11736 | #define DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label "SHTC3"
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:31: note: in expansion of macro 'DT_LABEL'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_sensirion_shtc3cd'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:21:15: note: in expansion of macro 'DT_INST'
21 | #define SHTC3 DT_INST(0, sensirion_shtc3cd)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:40: note: in expansion of macro 'SHTC3'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:37:21: note: in expansion of macro 'CONFIG_SHTC3_DEV_NAME'
37 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:45:10: error: 'struct aqw_sensor' has no member named 'dev_name'
45 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:45:13: warning: Macro is deprecated
45 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:11736:72: warning: initialization of 'unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
11736 | #define DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label "SHTC3"
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:31: note: in expansion of macro 'DT_LABEL'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_sensirion_shtc3cd'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:21:15: note: in expansion of macro 'DT_INST'
21 | #define SHTC3 DT_INST(0, sensirion_shtc3cd)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:40: note: in expansion of macro 'SHTC3'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:45:21: note: in expansion of macro 'CONFIG_SHTC3_DEV_NAME'
45 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:11736:72: note: (near initialization for 'humidity_sensor.interval')
11736 | #define DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label "SHTC3"
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_shtc3_70_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:31: note: in expansion of macro 'DT_LABEL'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_sensirion_shtc3cd'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:21:15: note: in expansion of macro 'DT_INST'
21 | #define SHTC3 DT_INST(0, sensirion_shtc3cd)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:22:40: note: in expansion of macro 'SHTC3'
22 | #define CONFIG_SHTC3_DEV_NAME DT_LABEL(SHTC3)
| ^~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:45:21: note: in expansion of macro 'CONFIG_SHTC3_DEV_NAME'
45 | .dev_name = CONFIG_SHTC3_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:53:10: error: 'struct aqw_sensor' has no member named 'dev_name'
53 | .dev_name = CONFIG_SGP40_DEV_NAME,
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:53:13: warning: Macro is deprecated
53 | .dev_name = CONFIG_SGP40_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:11620:72: warning: initialization of 'unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
11620 | #define DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_sgp40_59_P_label "SGP40"
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_sgp40_59_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:25:31: note: in expansion of macro 'DT_LABEL'
25 | #define CONFIG_SGP40_DEV_NAME DT_LABEL(SGP40)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_sensirion_sgp40cd'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:24:15: note: in expansion of macro 'DT_INST'
24 | #define SGP40 DT_INST(0, sensirion_sgp40cd)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:25:40: note: in expansion of macro 'SGP40'
25 | #define CONFIG_SGP40_DEV_NAME DT_LABEL(SGP40)
| ^~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:53:21: note: in expansion of macro 'CONFIG_SGP40_DEV_NAME'
53 | .dev_name = CONFIG_SGP40_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:11620:72: note: (near initialization for 'voc_sensor.interval')
11620 | #define DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_sgp40_59_P_label "SGP40"
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_i2c_9000_S_sgp40_59_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:25:31: note: in expansion of macro 'DT_LABEL'
25 | #define CONFIG_SGP40_DEV_NAME DT_LABEL(SGP40)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_sensirion_sgp40cd'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:24:15: note: in expansion of macro 'DT_INST'
24 | #define SGP40 DT_INST(0, sensirion_sgp40cd)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:25:40: note: in expansion of macro 'SGP40'
25 | #define CONFIG_SGP40_DEV_NAME DT_LABEL(SGP40)
| ^~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:53:21: note: in expansion of macro 'CONFIG_SGP40_DEV_NAME'
53 | .dev_name = CONFIG_SGP40_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:61:10: error: 'struct aqw_sensor' has no member named 'dev_name'
61 | .dev_name = CONFIG_HPMA115S0_DEV_NAME,
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:61:13: warning: Macro is deprecated
61 | .dev_name = CONFIG_HPMA115S0_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:12437:74: warning: initialization of 'unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
12437 | #define DT_N_S_soc_S_peripheral_40000000_S_uart_a000_S_hpma115s0_P_label "HPMA115S0"
| ^~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_uart_a000_S_hpma115s0_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:28:35: note: in expansion of macro 'DT_LABEL'
28 | #define CONFIG_HPMA115S0_DEV_NAME DT_LABEL(HPMA115S0)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_honeywell_hpma115s0'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:27:19: note: in expansion of macro 'DT_INST'
27 | #define HPMA115S0 DT_INST(0, honeywell_hpma115s0)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:28:44: note: in expansion of macro 'HPMA115S0'
28 | #define CONFIG_HPMA115S0_DEV_NAME DT_LABEL(HPMA115S0)
| ^~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:61:21: note: in expansion of macro 'CONFIG_HPMA115S0_DEV_NAME'
61 | .dev_name = CONFIG_HPMA115S0_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/build/zephyr/include/generated/devicetree_generated.h:12437:74: note: (near initialization for 'hpma_sensor.interval')
12437 | #define DT_N_S_soc_S_peripheral_40000000_S_uart_a000_S_hpma115s0_P_label "HPMA115S0"
| ^~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:3903:29: note: in expansion of macro 'DT_N_S_soc_S_peripheral_40000000_S_uart_a000_S_hpma115s0_P_label'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:607:32: note: in expansion of macro 'DT_CAT3'
607 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:766:27: note: in expansion of macro 'DT_PROP'
766 | #define DT_LABEL(node_id) DT_PROP(node_id, label) __DEPRECATED_MACRO
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:28:35: note: in expansion of macro 'DT_LABEL'
28 | #define CONFIG_HPMA115S0_DEV_NAME DT_LABEL(HPMA115S0)
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_N_INST_0_honeywell_hpma115s0'
105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
| ^
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/Users/quark11/Documents/aqw-test/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:27:19: note: in expansion of macro 'DT_INST'
27 | #define HPMA115S0 DT_INST(0, honeywell_hpma115s0)
| ^~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:28:44: note: in expansion of macro 'HPMA115S0'
28 | #define CONFIG_HPMA115S0_DEV_NAME DT_LABEL(HPMA115S0)
| ^~~~~~~~~
/Users/quark11/Documents/aqw-test/demo/basic/src/main.c:61:21: note: in expansion of macro 'CONFIG_HPMA115S0_DEV_NAME'
61 | .dev_name = CONFIG_HPMA115S0_DEV_NAME,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[120/268] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /Users/quark11/.zephyrtools/cmake/cmake-3.22.0-macos-universal/CMake.app/Contents/bin/cmake --build /Users/quark11/Documents/aqw-test/demo/basic/build
* The terminal process "/usr/local/bin/bash '-c', 'west build -b circuitdojo_feather_nrf9160_ns -p'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
I’m pretty keen to get build AQW for Zephyr successfully so that I can proceed to order the aqw / sensor hardware. Appreciate your help!