<?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>Undeclared variable error when transitioning from device_get_binding() to DEVICE_DT_GET()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99159/undeclared-variable-error-when-transitioning-from-device_get_binding-to-device_dt_get</link><description>With Connect SDK v2.0.2 and zephyr 0.14.2, I was using the following code excerpt to successfully get the analog-to-digitial device successfully: 
 
 I have updated to Connect SDK 2.3 and zephyr 0.15.2. I see that device_get_binding() has been deprecated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Apr 2023 13:21:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99159/undeclared-variable-error-when-transitioning-from-device_get_binding-to-device_dt_get" /><item><title>RE: Undeclared variable error when transitioning from device_get_binding() to DEVICE_DT_GET()</title><link>https://devzone.nordicsemi.com/thread/422760?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 13:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e948832b-684a-495b-942f-200909bc1acb</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Ah glad you solved it!&lt;/p&gt;
&lt;p&gt;And sorry about me being hung up on the Zephyr version. I thought you were refering to the &lt;a href="https://github.com/zephyrproject-rtos/zephyr"&gt;Zephyr RTOS&lt;/a&gt; version, not the &lt;a href="https://github.com/zephyrproject-rtos/sdk-ng"&gt;Zephyr SDK&lt;/a&gt; version. I&amp;#39;ve have had other cases where people have been using different zephyr versions than what comes with NCS, causing some issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undeclared variable error when transitioning from device_get_binding() to DEVICE_DT_GET()</title><link>https://devzone.nordicsemi.com/thread/422749?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 13:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:007c9c64-c75a-42e3-b736-7423398b3d18</guid><dc:creator>brown27</dc:creator><description>&lt;p&gt;I think I have resolved the issue - I was close before. I did a search for &amp;quot;nordic_nrf_saadc&amp;quot; throughout all of the v2.3 Connect SDK files and was pointed to the file at this path:&lt;/p&gt;
&lt;p&gt;~/ncs/zephyr/tests/drivers/adc/adc_api/src/test_adc.c&lt;/p&gt;
&lt;p&gt;It contains an example of how to set up the adc using the new method, as seen in the images below.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682600315156v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682600380086v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When I rebuild, I no longer get an error related to the adc - I believe this solves my issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undeclared variable error when transitioning from device_get_binding() to DEVICE_DT_GET()</title><link>https://devzone.nordicsemi.com/thread/422738?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 12:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7b8565-f058-4de1-ab72-7419bf144157</guid><dc:creator>brown27</dc:creator><description>&lt;p&gt;In the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/getting_started/installing.html"&gt;&amp;quot;Installing Manually&amp;quot;&lt;/a&gt;&amp;nbsp;instructions, it says to install v0.15.2 of the Zephyr SDK. It used to instruct you to install v0.14.2 of the Zephyr SDK when versions 2.0.X of the Connect SDK were released.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682598441596v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undeclared variable error when transitioning from device_get_binding() to DEVICE_DT_GET()</title><link>https://devzone.nordicsemi.com/thread/422703?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 10:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce47f86-9107-4c58-bcd2-25d742f7d7bb</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First of all, are you saying that you are using&amp;nbsp;zephyr &lt;strong&gt;v0.14.2&lt;/strong&gt; &amp;amp; &lt;span&gt;zephyr &lt;strong&gt;0.15.2&lt;/strong&gt;&lt;/span&gt;, as opposed to the default versions (3.0.99 &amp;amp; 3.2.99) that comes with NCS v2.0.2 and 2.3?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>