<?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>How to read three adc pin ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31988/how-to-read-three-adc-pin</link><description>Hello everyone, 
 I use SDK14.2 and s132 softdevice. I can read &amp;quot;NRF_SAADC_INPUT_AIN0&amp;quot; and &amp;quot;NRF_SAADC_INPUT_VDD&amp;quot; pins and system is working properly. 
 
 Working Code like this; 
 
 Now I want to add new ADC pin and read &amp;quot;NRF_SAADC_INPUT_AIN1&amp;quot;. I added</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 08:02:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31988/how-to-read-three-adc-pin" /><item><title>RE: How to read three adc pin ?</title><link>https://devzone.nordicsemi.com/thread/124287?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 08:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c57a6a2-efbe-42a4-abe2-75e5674ddf13</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You also have to define DEBUG in your preprocessor defines. Or else the line will not be included by the compiler.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-802ef5e89fd2442ebf8f85546a60c2e6/pastedimage1521014551273v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you test that?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read three adc pin ?</title><link>https://devzone.nordicsemi.com/thread/124126?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 10:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4c156b-af36-44dc-96ca-96025abfe1b4</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;I guess I can not debug with keil because I use segger_RTT. But I do not know exactly why.&lt;/p&gt;
&lt;p&gt;Also, RTT Viewer screen is like this;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1373.1.JPG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read three adc pin ?</title><link>https://devzone.nordicsemi.com/thread/124065?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 07:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51aa3bd2-57f8-46fa-8f76-f74c9b2db796</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Edvin, Thanks for your response. I set optimization to 0 and put a breakpoint on line 73 but I can do debug cause of error57-illegal address 0x00023000 (I do not know why)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5050.1.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read three adc pin ?</title><link>https://devzone.nordicsemi.com/thread/124016?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 16:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35c71883-82b0-483d-8b8a-72471c7d30fb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please try to add DEBUG to your preprocessor defines, and turn off the optimization (set it to 0, -O0).&lt;/p&gt;
&lt;p&gt;Then set a breakpoint in app_error.c on line 73, and see if you can find what err_code and file name and line number that the error appeared.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>