<?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>ADC overlay setup issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97864/adc-overlay-setup-issue</link><description>I have an issue with the ADC overlay setup, the attached code can be built on version 2.1, but cannot build on version 2.0. 
 The problem is overlay setup, Do you have any solution for version 2.0? 
 
 overlay file: 
 
 / { 
 zephyr,user { 
 io-channels</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Mar 2023 12:39:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97864/adc-overlay-setup-issue" /><item><title>RE: ADC overlay setup issue</title><link>https://devzone.nordicsemi.com/thread/416251?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 12:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1385c804-8a97-4708-82ce-21e03435aeb8</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The code you have shared is based on ADC sample, and you are getting errors/problem when compiling with&amp;nbsp;nCS v2.0.0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In fact, the proper method to start with samples is first to choose the ncs version first, and the corresponding toolchain from the VSCode welcome screen (quick setup), and then create a new application and choose the required sample accordingly.&amp;nbsp;&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/pastedimage1679315570415v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you start ADC sample in v2.1.0 and v2.0.0, you will see several differences in the provided code of these samples.&lt;/p&gt;
&lt;p&gt;Example provided with a particular ncs version may not always work with other ncs versions, and that is the case with this ADC example.&lt;/p&gt;
&lt;p&gt;Also, ADC example in v2.1.0 supports nrf52840DK while the v2.0.0 does not.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;supported boards for ADC sample in v2.0.0:&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/pastedimage1679315846154v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There might be other differences as well (including dts bindings, header files, and driver implementations etc.)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope it explains the issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>