我正在尝试设置CMake与zephyr一起工作,工具链已安装。当我尝试配置时,出现此错误,并且我不知道如何修复它。
我正在使用一个BT510传感器。我试图获得它的读数,并通过蓝牙发送到另一个运营商。
如果我的方法是有效的,我如何修复这个错误?如果不是,我有什么替代方案与BT510一起工作?
以下是包含错误的整个CMake窗口:
Loading Zephyr default modules (Zephyr base (cached)).
Application: C:/Users/omars/OneDrive/Desktop/BT
Cache files will be written to: C:/Users/omars/zephyrproject/zephyr/.cache
Zephyr version: 3.0.99 (C:/Users/omars/zephyrproject/zephyr)
Found west (found suitable version "0.12.0", minimum required is "0.7.1")
Board: bt510
Found toolchain: gnuarmemb (C:/Program Files (x86)/gnu_arm_embedded)
Found BOARD.dts: C:/Users/omars/zephyrproject/zephyr/boards/arm/bt510/bt510.dts
Generated zephyr.dts: C:/Users/omars/OneDrive/Desktop/BT/build/zephyr/zephyr.dts
Generated devicetree_unfixed.h: C:/Users/omars/OneDrive/Desktop/BT/build/zephyr/include/generated/devicetree_unfixed.h
Generated device_extern.h: C:/Users/omars/OneDrive/Desktop/BT/build/zephyr/include/generated/device_extern.h
Including generated dts.cmake file: C:/Users/omars/OneDrive/Desktop/BT/build/zephyr/dts.cmake
Parsing C:/Users/omars/OneDrive/Desktop/BT/Kconfig
Loaded configuration 'C:/Users/omars/zephyrproject/zephyr/boards/arm/bt510/bt510_defconfig'
Merged configuration 'C:/Users/omars/OneDrive/Desktop/BT/prj.conf'
Traceback (most recent call last):
File "C:\Users\omars\zephyrproject\zephyr\scripts\kconfig\kconfig.py", line 278, in <module>
main()
File "C:\Users\omars\zephyrproject\zephyr\scripts\kconfig\kconfig.py", line 65, in main
if kconf.syms['WARN_EXPERIMENTAL'].tri_value == 1:
KeyError: 'WARN_EXPERIMENTAL'
CMake Error at C:/Users/omars/zephyrproject/zephyr/cmake/modules/kconfig.cmake:289 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/Users/omars/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
C:/Users/omars/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:45 (include)
C:/Users/omars/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include_boilerplate)
CMakeLists.txt:5 (find_package)
Configuring incomplete, errors occurred!
提前感谢!
1条答案
按热度按时间kgsdhlau1#
如果您刚刚添加了
C:/Users/omars/OneDrive/Desktop/BT/Kconfig
,则可能缺少source "${ZEPHYR_BASE}/Kconfig.zephyr"
WARN_EXPERIMENTAL
(和EXPERIMENTAL
)是一个奇怪的配置文件,因为它在www.example.com中是硬编码kconfig.py。要运行kconfig.py,该配置文件必须存在。我建议您在
C:/Users/omars/OneDrive/Desktop/BT/Kconfig
中的最后一个更改以某种方式排除了C:/Users/omars/zephyrproject/zephyr/Kconfig.zephyr
中的配置定义。查找根Kconfig的优先级如下(kconfig.cmake)。优先级是
KCONFIG_ROOT
cmake env var,否则是app目录中的Kconfig
文件,最后是zephyr顶级Kconfig。