icp20100.7z
I'm trying to create a Zephyr driver for a pressure sensor.
I've seen the other examples, but one doesn't use any dts bindings, and the other builds under west, and I need to build under VSCode, so neither one is being much help.
I've gotten it close, but I'm stuck on:
I'm not even sure what it's complaining about, much less how to fix it.Traceback (most recent call last):
File "C:/ncs/v2.3.0/zephyr/scripts/kconfig/kconfig.py", line 292, in <module>
main()
File "C:/ncs/v2.3.0/zephyr/scripts/kconfig/kconfig.py", line 65, in main
if kconf.syms['WARN_DEPRECATED'].tri_value == 2:
KeyError: 'WARN_DEPRECATED'
CMake Error at C:/ncs/v2.3.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.3.0/nrf/cmake/modules/kconfig.cmake:29 (include)
C:/ncs/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:8 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.3.0\opt\bin\python.exe' '-Bc:\TestApps\icp20100\build' -GNinja -DBOARD=nrf52dk_nrf52832 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DBOARD_ROOT:STRING=c:/TestApps/icp20100 -DDTC_OVERLAY_FILE:STRING=c:/TestApps/icp20100/boards/nrf52dk_nrf52832.overlay -DCONF_FILE:STRING=c:/TestApps/icp20100/prj.conf '-Sc:\TestApps\icp20100'
It broke when I added the KConfig file at the root level, which seems to be needed to point to the KConfig file in the driver.
If I remove the KConfig driver at the top level, it builds, but none of the new KConfig options get set, so that driver file isn't being used.
The driver still needs a bunch of work on my end, but if you can help me get it building properly, that would be super helpful!