<?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>BLE stops advertising once changed UART tx and rx pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13504/ble-stops-advertising-once-changed-uart-tx-and-rx-pin</link><description>Hi All, 
 I am using Nordic SDK version nrf51_SDK_9.0.0 for PCA10028 board. In that i am using application 
 D:\nRF51_SDK_9.0.0_2e23562\examples\ble_central_and_peripheral\experimental\app_s130_demo 
 with S130_V_1.0.0 softdevice. 
 But if i change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Apr 2016 10:03:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13504/ble-stops-advertising-once-changed-uart-tx-and-rx-pin" /><item><title>RE: BLE stops advertising once changed UART tx and rx pin</title><link>https://devzone.nordicsemi.com/thread/51553?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 10:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff824035-0f5f-4063-a5a5-fb59c27abb7a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;not giving advertisement&amp;quot;. 99.9% of the time that means you&amp;#39;re in the error handler. So put a breakpoint there and find out which system call gave you an error and why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stops advertising once changed UART tx and rx pin</title><link>https://devzone.nordicsemi.com/thread/51552?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 08:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52cc854b-bde6-4ce2-ab27-986433a075e4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;@Fab1223 Please edit your question and include the code. And mark the code and use the 101010 button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stops advertising once changed UART tx and rx pin</title><link>https://devzone.nordicsemi.com/thread/51551?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 06:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd85ba76-1638-4668-aa9e-8f0d996d2d04</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;int main(void)
{
uint32_t err_code;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    board_configure();
    rtc1_init();

    LOG_DEBUG(&amp;quot;%s: Enabling SoftDevice...&amp;quot;, __FUNCTION__);
    
    if (NRF_SUCCESS != sd_softdevice_enable((uint32_t)NRF_CLOCK_LFCLKSRC_XTAL_75_PPM, softdevice_assert_callback))
    {
        APP_ASSERT (false);
    }

    ble_enable_params_t ble_enable_params = 
    {
        .gatts_enable_params = 
        {
            .service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT,
            .attr_tab_size   = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT
        }
    };
    if (NRF_SUCCESS != sd_ble_enable(&amp;amp;ble_enable_params))
    {
        APP_ASSERT (false);
    }
    
    if (NRF_SUCCESS != sd_nvic_EnableIRQ(SD_EVT_IRQn))
    {
        APP_ASSERT (false);
    }
    LOG_INFO(&amp;quot;#########################&amp;quot;);
    LOG_INFO(&amp;quot;# S130 Demo application #&amp;quot;);
    LOG_INFO(&amp;quot;#########################&amp;quot;);
    LOG_INFO(&amp;quot;INFO: Press button 1 to connect to peripherals.&amp;quot;);
    LOG_INFO(&amp;quot;INFO: Press button 2 to see the buffered data&amp;quot;);
    LOG_INFO(&amp;quot;INFO: Press both 1 and 2 buttons to quit demo.&amp;quot;);
    LOG_INFO(&amp;quot;Inital error reason %d\r\n&amp;quot;, err_code);
		
		
    own_service_setup();
    peripherals_info_reset();
    central_info_reset();

//		err_code = sd_ble_gap_scan_start(&amp;amp;m_scan_param);
//    APP_ERROR_CHECK(err_code);
//		if ((err_code = event_handle(BLE_GAP_EVT_ADV_REPORT, 2000, NULL, NULL)))
//		{
//		}
    do_work();
    
    LOG_DEBUG(&amp;quot;%s: End demo application...&amp;quot;, __FUNCTION__);
    while (1);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here is Piece of UART CODE&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void uart_init(void)
{
	
	 /**@snippet [UART Initialization] */
    simple_uart_config(RTS_PIN_NUMBER, TX_PIN_NUMBER, CTS_PIN_NUMBER, RX_PIN_NUMBER, HWFC);
    
    NRF_UART0-&amp;gt;INTENSET = UART_INTENSET_RXDRDY_Enabled &amp;lt;&amp;lt; UART_INTENSET_RXDRDY_Pos;
    
    NVIC_SetPriority(UART0_IRQn, APP_IRQ_PRIORITY_LOW);
    NVIC_EnableIRQ(UART0_IRQn);
    /**@snippet [UART Initialization] */
	}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here I change RX and TX pin&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_PIN_NUMBER  11
#define TX_PIN_NUMBER  9
#define CTS_PIN_NUMBER 10
#define RTS_PIN_NUMBER 8
#define HWFC           true
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here is pin config in pca10028.h file, if i keep RX and TX 11 and 9 as default works properly, but if change pins , not giving advertisement&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE stops advertising once changed UART tx and rx pin</title><link>https://devzone.nordicsemi.com/thread/51554?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 06:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8e5cf7b-7362-4595-9a60-cce55f3c0498</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;can you share the piece of code you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>