<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Another &amp;quot;undefined reference to __device_dts_ord_xx&amp;#39; linker error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107619/another-undefined-reference-to-__device_dts_ord_xx-linker-error</link><description>Here&amp;#39;s the error: 
 .... src/gnssI2c.c:21: undefined reference to `__device_dts_ord_105&amp;#39; 
 Here&amp;#39;s line 21 
 
 Device tree snippet: 
 
 /* I2C */ 
 &amp;amp; i2c2 { 
 compatible = &amp;quot;nordic,nrf-twim&amp;quot; ; 
 status = &amp;quot;okay&amp;quot; ; 
 pinctrl-0 = &amp;lt; &amp;amp; i2c2_default &amp;gt;; 
 pinctrl</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2024 23:25:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107619/another-undefined-reference-to-__device_dts_ord_xx-linker-error" /><item><title>RE: Another "undefined reference to __device_dts_ord_xx' linker error</title><link>https://devzone.nordicsemi.com/thread/465691?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 23:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c47a4fc-7e7c-4405-b63f-b4e7bf06bf8f</guid><dc:creator>Spi</dc:creator><description>&lt;p&gt;Thank you. I missed that subtlety, and I was looking right at the example code in lesson 6 of the Intro to nRF SDK and still didn&amp;#39;t see it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Another "undefined reference to __device_dts_ord_xx' linker error</title><link>https://devzone.nordicsemi.com/thread/465531?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 11:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd26bfa-fc1b-40ae-b0fc-7c1794ea9d3c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response. Instead of using DEVICE_DT_GET(), you can use I2C_DT_SPEC_GET() to fetch the structure for a device on the I2C bus. For example:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const struct i2c_dt_spec gnssI2C = I2C_DT_SPEC_GET(DT_NODELABEL(ubloxm10s));&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;DEVICE_DT_GET() is failing because there is no SDK driver associated with your sensor to initialize the device structure.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>