Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cannot build the module due to devicetree error

Open
#145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

Start by reproducing the reported west build command for olimex_stm32_e407 and inspect the referenced board DTS and app.overlay files. Trace the duplicate zephyr_udc0 labels reported for the two USB nodes; done means the module configures and builds successfully without the devicetree error.

Written by the indexing model from the issue text.

Description

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
Dominant language
C
Stars
92
Forks
56
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from micro-ROS/micro_ros_zephyr_module

All issues in micro-ROS/micro_ros_zephyr_module

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.