micro-ROS / micro-ROS/micro_ros_zephyr_module
Cannot build the module due to devicetree error
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 92
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- c
- Domain
- build-system, embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100