<?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>I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23393/i-want-to-read-analog-voltage-applied-to-pin-on-nrf52840-please-help</link><description>Is there any simple way of reading analog values from pin. Setting up SAADC is giving too much of errors like command line action failed or any variable is undeclared whose header file is correctly included</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jul 2017 10:30:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23393/i-want-to-read-analog-voltage-applied-to-pin-on-nrf52840-please-help" /><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91958?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 10:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d1ab22-9057-444c-b9f9-029273caadf9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what this error means, looks like some Visual Studio/VisualGDB specific error. Why are you using Visual Studio? This is not supported by our SDK, and not something we recommend/support in general.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91956?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 08:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac717d95-7405-4320-91e4-3d9be74a6d91</guid><dc:creator>Arjit</dc:creator><description>&lt;p&gt;Well, I rectified those errors by defining those identifiers in nrf_drv_timer.h But now I am getting&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Severity	Code	Description	Project	File	Line	Suppression State
Error		Command-line action failed	EmbeddedProject1	D:\OnceAgain\EmbeddedProject1\EmbeddedProject1\VisualGDB	1	
Error		Build has failed. See the Output window for more details.	EmbeddedProject1	D:\OnceAgain\EmbeddedProject1\EmbeddedProject1\EXEC	1	
Error	MSB3073	The command &amp;quot;&amp;quot;C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe&amp;quot; /build &amp;quot;D:\OnceAgain\EmbeddedProject1\EmbeddedProject1\EmbeddedProject1.vcxproj&amp;quot; &amp;quot;/solution:D:\OnceAgain\EmbeddedProject1\EmbeddedProject1.sln&amp;quot; &amp;quot;/config:Debug&amp;quot; &amp;quot;/platform:Win32&amp;quot;&amp;quot; exited with code 1.	EmbeddedProject1	C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets	44
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91957?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 08:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b910c23b-7c74-49b1-874a-724047f518ba</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I don&amp;#39;t see your errors here, but I got one on e-mail. &lt;code&gt;&amp;#39;TIMER_DEFAULT_CONFIG_FREQUENCY&lt;/code&gt; is not defined in &lt;em&gt;nfr_drv_timer.h&lt;/em&gt;, it is only used here. This NRF_CONFIG macro should be defined in &lt;em&gt;sdk_config.h&lt;/em&gt;. If you do not have the nrf_drv_timer part in your &lt;em&gt;sdk_config.h&lt;/em&gt; file, you need to copy this from the full &lt;em&gt;sdk_config.h&lt;/em&gt; file found in &lt;code&gt;nRF5_SDK_13.0.0\config\sdk_config.h&lt;/code&gt;. You can also find the correct settings for SAADC example in &lt;code&gt;nRF5_SDK_13.0.0\examples\peripheral\saadc\pca10056\blank\config\sdk_config.h&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91955?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 03:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2dd7b76-c9a8-44d7-bd70-458b57ca4628</guid><dc:creator>Arjit</dc:creator><description>&lt;p&gt;Command line-action failed
Build has failed
These are the errors I am getting&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91954?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 09:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6141cbdb-76b6-4a52-a33e-7770742e004a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You can still look at the source files? What is the errors you are seeing?&lt;/p&gt;
&lt;p&gt;To use the SAADC peripheral driver, you should only have to include the HAL and driver source files to your project, and add the path to the header files (found in same directory as source files) to your include paths:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[SDK_ROOT]\components\drivers_nrf\hal\nrf_saadc.c
[SDK_ROOT]\components\drivers_nrf\saadc\nrf_drv_saadc.c
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In addition, you need to enable the peripheral in &lt;em&gt;sdk_config.h&lt;/em&gt;, by setting:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SAADC_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91960?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 05:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34f60058-4831-4323-946a-17f4fc2cc133</guid><dc:creator>Arjit</dc:creator><description>&lt;p&gt;I am working on Visual Studio. So I am unable to open the sample SAADC project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to read analog voltage applied to pin on nrf52840. Please help</title><link>https://devzone.nordicsemi.com/thread/91959?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 11:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23644fc4-dbb6-48bd-8ebe-2641559221f7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It is no other way to read analog values than setting up the SAADC. Please post the errors you are facing, and I will try to help you get it working. Please also have a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/nrf_dev_saadc_example.html?cp=4_0_1_4_4_28"&gt;SAADC example&lt;/a&gt; in our SDK, and &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples"&gt;these examples on GitHub&lt;/a&gt; about how to use the SAADC peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>