<?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>NRF52832 UART &amp;amp; SAADC Driver Confliction</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28793/nrf52832-uart-saadc-driver-confliction</link><description>Hello, I am trying to use adc with the uart so i can monitor the readings from adc. But when I include both drivers (nrf_drv_saadc , nrf_drv_uart) i got a confliction error. As far as I understand there are two definitions for the variable &amp;quot;m_cb&amp;quot; ; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Dec 2017 13:11:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28793/nrf52832-uart-saadc-driver-confliction" /><item><title>RE: NRF52832 UART &amp; SAADC Driver Confliction</title><link>https://devzone.nordicsemi.com/thread/114074?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 13:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f66f7bb3-a73f-4510-b547-dd338f23c5c3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;What does the errors say?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 UART &amp; SAADC Driver Confliction</title><link>https://devzone.nordicsemi.com/thread/114073?ContentTypeID=1</link><pubDate>Mon, 25 Dec 2017 19:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7131cb95-d22e-432f-97e3-dd00a3f26685</guid><dc:creator>Kerem</dc:creator><description>&lt;p&gt;By the way i switched to Seggger Mbed Studio. Which seems to cause a lot less errors. But i don&amp;#39;t think that it would make a difference. Since i am getting the same errors as before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 UART &amp; SAADC Driver Confliction</title><link>https://devzone.nordicsemi.com/thread/114072?ContentTypeID=1</link><pubDate>Mon, 25 Dec 2017 19:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51ee31f0-a2cf-4856-a76e-f575285cff6b</guid><dc:creator>Kerem</dc:creator><description>&lt;p&gt;Sure,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;quot;sdk_config.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;nrf_uart.h&amp;quot;
#include &amp;quot;nrf_drv_saadc.c&amp;quot;
#include &amp;quot;app_uart.c&amp;quot;

void main(void) {
  uint32_t err_code;
  nrf_saadc_value_t adc_result;
  nrf_drv_saadc_config_t adc_conf=NRF_DRV_SAADC_DEFAULT_CONFIG;

  nrf_saadc_channel_config_t adc_channel_conf=NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_AIN0);

  nrf_gpio_cfg_output(7);
  nrf_drv_saadc_init(&amp;amp;adc_conf,NULL);
  nrf_drv_saadc_channel_init(0,&amp;amp;adc_channel_conf);
  nrf_drv_saadc_buffer_convert(&amp;amp;adc_result,2);
  nrf_drv_saadc_sample();
  while(1){
    nrf_delay_ms(1000);
    nrf_gpio_pin_toggle(7);
    //nrf_drv_saadc_sample_convert(0,&amp;amp;adc_result);
    printf(&amp;quot;ADC Res : %d\n&amp;quot;,adc_result);

  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 UART &amp; SAADC Driver Confliction</title><link>https://devzone.nordicsemi.com/thread/114071?ContentTypeID=1</link><pubDate>Mon, 25 Dec 2017 16:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48aa42d7-f23d-4070-807f-fc35de22bcaf</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Why would the uart driver define saadc static variable? Can you share your code with us here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>