<?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>UART RX executed when connected via BT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5324/uart-rx-executed-when-connected-via-bt</link><description>Hi, 
 I have the following code with SD110 7.1.0: 
 static void uart_init(void) // device inter-communication
{

// Configure RX and TX pins.
nrf_gpio_pin_set(0);
nrf_gpio_cfg_output(0);
nrf_gpio_cfg_input(0, NRF_GPIO_PIN_PULLUP);


NRF_UART0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jan 2015 12:59:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5324/uart-rx-executed-when-connected-via-bt" /><item><title>RE: UART RX executed when connected via BT</title><link>https://devzone.nordicsemi.com/thread/18612?ContentTypeID=1</link><pubDate>Fri, 30 Jan 2015 12:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df30e61-7a2d-475f-bd4e-7b65c20b0e79</guid><dc:creator>Syrius</dc:creator><description>&lt;p&gt;Of course I call it before SD:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
// Initialize
leds_init();
timers_init();
gpiote_init();
controls_init();
uart_init();
ble_stack_init();
scheduler_init();    
gap_params_init();
services_init();
advertising_init();
sensor_sim_init();
conn_params_init();
sec_params_init();
...
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hmmm. You are right. I configured both pin as output. I will check it... Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART RX executed when connected via BT</title><link>https://devzone.nordicsemi.com/thread/18611?ContentTypeID=1</link><pubDate>Fri, 30 Jan 2015 12:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7d1dc2-f402-4eb9-87be-d8a36d031269</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Hmm, that sounds a bit strange. You should call uart_init function before you call the softdevice. Are you doing that?&lt;/p&gt;
&lt;p&gt;One question: Why do you not use app_uart library directly?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 30.1.2014&lt;/strong&gt;
Perhaps it has something to do with the gpio configuration of the RXD and TXD pins. I would suggest to configure this as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Configure RX and TX pins.
nrf_gpio_cfg_output(0);
nrf_gpio_pin_set(0);
nrf_gpio_cfg_input(1, NRF_GPIO_PIN_NOPULL);

NRF_UART0-&amp;gt;PSELTXD = 0;
NRF_UART0-&amp;gt;PSELRXD = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It seems that in your code you have configured pin 0 both as output and input.&lt;/p&gt;
&lt;p&gt;I copy also the NOPULL configuration from the app_uart library, as the peer UART device should drive the signal for the RXD input pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>