Custom OOT AMS TMF882X driver - multiple definition of `__device_dts_ord_xx'

Hi everyone,

I am currently trying to implement a new OOT driver for a ToF sensor made by AMS, the TMF882X.

I have made a kind of skeleton driver based on another one (Sensirion SCD4X).

While compiling my driver i get the following error which I cannot track down and find the cause of it.

It seems that there's multiple definitions during linking of my driver.

I could not find much while searching online

I've also posted all my source files for the driver.

Any help would be greatly appreciated.

tmf882x_testing.rar

Parents
  • To understand which node is connected to node 94 in the multiple definition of __device_dts_ord_94 you can check your build folder build\zephyr\include\generated\devicetree_generated.h. 

    In my build it shows like this

     *   94  /soc/peripheral@50000000/mutex@30000
     *   95  /soc/peripheral@50000000/nfct@2d000

    Then I know that it is mutex definition in the dts file that is defined multiple times in my project. Find out which node is connected in your dts definition.

    Regarding the other multiple definition of log_const_TMF882X, this has to be something specific to your build. As I do not see this in our default SDK definitions.

  • Hi Susheel,

    Thanks for the reply.

    I cannot find the "devicetree_generated.h" file which you suggested me to check.

    As for the log error it points to the log definition of the drivers module

    I also have to mention that I am building with with zephyr 1.9.1

Reply Children
Related