文章目录
- ...undefined reference to `__device_dts_ord_N'
- 链接失败
- 解决方案
…undefined reference to `__device_dts_ord_N’
链接失败
提示如下
...undefined reference to `__device_dts_ord_N'
collect2: error: ld returned 1 exit status
解决方案
引自https://docs.zephyrproject.org/latest/build/dts/howtos.html
This likely means there’s a Kconfig issue preventing the device driver
from being built, resulting in a reference that does not exist. If
your code compiles successfully, the last thing to check is if the
device is ready, like this:
由上可知检查Kconfig方面。如_defconfig文件中,功能选项开关是否=y