I have an out of tree driver (vl53l1x) building and linking for an out of tree board which works.
However, another driver for bmi088, builds, appears to link but does not appear in the map files
which leads to this error when I try and use the sensor --> undefined reference to `__device_dts_ord_127'
I have a feeling the dts fragment may be the cause but not sure at this point.
source tree looks like this
- project_root
- boards
- dts
- hello_world
CMakeLists.txt
KConfig
prf.conf
sample.yaml
- drivers
CMakeLists.txt
KConfig
- sensor
CMakeLists.txt
KConfig
- bmi088
CMakeLists.txt
KConfig
<other code files>
- vl53l1x (functioning)
- src
main.c
Without trying to use the sensor
[172/184] Linking C static library drivers\sensor\bmi088\lib..__..__..__workvob__xqc__bringup_empty__hello_world__drivers__sensor__bmi088.a
[173/184] Linking C static library zephyr\kernel\libkernel.a
[174/184] Linking C executable zephyr\zephyr_pre0.elf
When I try to use the sensor
[174/185] Linking C static library drivers\sensor\bmi088\lib..__..__..__workvob__xqc__bringup_empty__hello_world__drivers__sensor__bmi088.a
[175/185] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `get_gyro_device':
C:\workvob\xqc\bringup_empty\hello_world\src\main.c:131: undefined reference to `__device_dts_ord_127'
&i2c1 {
gyro: bmi088_gyr@69 {