micro-ROS / micro-ROS/micro_ros_zephyr_module

Cannot build the module due to devicetree error

未关闭
#145 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C
星标
92
派生
56
PR 合并指标
30 天内没有已合并 PR

描述

Issue template

  • Hardware description: olimex_stm32_e407
  • RTOS: Zephyr
  • Installation type: micro_ros_zephyr_module
  • Version or commit hash: 3.1.3-8-g96ab3c1
Steps to reproduce the issue

I'm trying to build the module for my Olimex board. This is the command I've used west build -b olimex_stm32_e407 micro_ros_zephyr_module/

Expected behavior
Actual behavior

This build is not successful. This is the error:

-- Found BOARD.dts: /home/vboxuser/zephyrproject/zephyr/boards/olimex/stm32_e407/olimex_stm32_e407.dts
-- Found devicetree overlay: /home/vboxuser/zephyrproject/zephyr/micro_ros_zephyr_module/app.overlay
devicetree error: Label 'zephyr_udc0' appears on /soc/usb@40040000 and on /soc/usb@50000000
CMake Error at /home/vboxuser/zephyrproject/zephyr/cmake/modules/dts.cmake:303 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 1"

Call Stack (most recent call first):
  /home/vboxuser/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  /home/vboxuser/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/vboxuser/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:117 (include_boilerplate)
  CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/vboxuser/zephyrproject/.venv/bin/python3 -B/home/vboxuser/zephyrproject/zephyr/build -GNinja -DBOARD=olimex_stm32_e407 -S/home/vboxuser/zephyrproject/zephyr/micro_ros_zephyr_module
Additional information

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先复现针对 olimex_stm32_e407 报告的 west build 命令,并检查所引用的板级 DTS 和 app.overlay 文件。追踪两个 USB 节点所报告的重复 zephyr_udc0 标签;当模块能够在没有 devicetree 错误的情况下成功配置和构建时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
c
领域
build-system, embedded-iot
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。