<?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>Compilation issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43406/compilation-issue</link><description>Hi, 
 I am new to Nordic development environment. 
 I am compiling the some code developed by vendor for NRF5 SDK 12.2.0 
 I am getting errors such as 
 Error1 snippet 
 &amp;quot;&amp;#39;NRF_SAADC&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_ADC&amp;#39;? &amp;#39;NRF_SAADC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Feb 2019 16:11:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43406/compilation-issue" /><item><title>RE: Compilation issue</title><link>https://devzone.nordicsemi.com/thread/170170?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 16:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee26cde7-9826-43e4-b501-02c38a8b1499</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;It looks like you are compiling nRF52 code in nRF51 project. &amp;nbsp; Check if you have the target device defined somewhere (NRF52 or NRF51)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation issue</title><link>https://devzone.nordicsemi.com/thread/170086?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 10:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad7f0eb9-119d-4ac9-ac59-84a2580c3cde</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I would recommend you to open the SAADC example in SDK 12.2 (located in &lt;em&gt;examples/peripheral/saadc&lt;/em&gt;), and then search for the undeclared definitions (ctrl+shift+F).&lt;/p&gt;
&lt;p&gt;The defintion&amp;nbsp;&lt;span&gt;NRF_SAADC is declared in the file &lt;em&gt;nrf52.h&lt;/em&gt;, and you will need to add this header file to the include paths.&amp;nbsp; The defintions&amp;nbsp;SAADC_CH_LIMIT_LOW_Pos and&amp;nbsp;SAADC_CH_LIMIT_HIGH_Pos is declared in &lt;em&gt;nrf52_bitfields.h.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>