<?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 app uart problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25056/ble-app-uart-problems</link><description>hi i have a problem with ble app uart.i used nRF5_SDK_12.3.0_d7731ad and Eclipse Mars 2.
I had build main.c in hex ble_app_uart\pca10040\s132 . And after that a maked mergehex with s132_nrf52_3.0.0_softdevice.hex.i flashed into my BLE nitrogen. i can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Sep 2017 09:29:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25056/ble-app-uart-problems" /><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98666?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 09:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11618846-5f4d-496a-8053-011844fd5aec</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It looks from the &lt;a href="http://wiki.seeed.cc/BLE_Nitrogen/#pinmap"&gt;PinMap of the BLE Nitrogen board&lt;/a&gt; as it use the following pins for UART:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_TX: 13
BLE_RX: 15
BLE_RTS: 12
BLE_CTS: 14
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You need to change the pins in the examples if you are using our SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98655?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 08:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7e7046-88ed-42c3-9410-39d8d327f866</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;i used Board BLE Nitrogen
Terminal v1.9b or Com port toolkit
And i mean chip has other Uart on which pins&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98661?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 07:22:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2409dc37-8e80-43b9-8bb9-076c75298193</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In the UART peripheral example, the UART pins are set to the pins defined in the BSP header file. For nRF52 DK (PCA10040 board), this is defined as the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What terminal software are you using? Have you enabled flow control in the settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98660?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 06:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:840583a8-b100-4f12-821b-ce6ee802fb1c</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;Can you hep me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98659?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 06:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af38028d-4e8e-4e93-bb66-3320fdc958e6</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;where i can see which pins is for Usart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98669?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 14:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dbcbaa4-0fd2-4a84-948e-1470a6296478</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;i modified function for it&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length) 
{ 
    for (uint32_t i = 0; i &amp;lt; length; i++) 
    { 
        ble_nus_string_send(&amp;amp;m_nus, p_data,length); 
        // while (app_uart_put(p_data[i]) != NRF_SUCCESS); 
    } 
    // while (app_uart_put(&amp;#39;\r&amp;#39;) != NRF_SUCCESS); 
    // while (app_uart_put(&amp;#39;\n&amp;#39;) != NRF_SUCCESS); 
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98668?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 13:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2d32f90-c96c-4e1b-a2c5-1767c0a25127</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;i want to now how i can resive msg from my phone where is exampe or can you help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98657?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 12:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2472db26-fd29-484a-ac1d-1ce6cf280216</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;i builded aplication onli for usat to pc from std 12 and it dosent work at all when i flased it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98656?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 12:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e2efb9b-6134-430c-9430-c795fc09747f</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;uart To pc not working at all at aplication ble app uart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98658?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 11:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc90928-0ddf-423b-a2db-5a729cbb5c89</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;proboly sothing wrong with ble_app_uart_gcc_nrf52.ld&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
  RAM (rwx) :  ORIGIN = 0x20002128, LENGTH = 0xded8
}

SECTIONS
{
  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM
  .pwr_mgmt_data :
  {
    PROVIDE(__start_pwr_mgmt_data = .);
    KEEP(*(.pwr_mgmt_data))
    PROVIDE(__stop_pwr_mgmt_data = .);
  } &amp;gt; RAM
} INSERT AFTER .data;

INCLUDE &amp;quot;nrf5x_common.ld&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98667?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 10:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb693e34-9bef-4ad7-9330-fa67903c85f0</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;When i modified main&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
    uint32_t err_code;
    uint8_t dat_array[5]={&amp;#39;a&amp;#39;,&amp;#39;a&amp;#39;,&amp;#39;a&amp;#39;,&amp;#39;a&amp;#39;,&amp;#39;a&amp;#39;};
    bool erase_bonds;
    // Initialize.
    APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);
    uart_init();

    buttons_leds_init(&amp;amp;erase_bonds);
    ble_stack_init();
    gap_params_init();
    services_init();
    advertising_init();
    conn_params_init();

    printf(&amp;quot;\r\nUART Start!\r\n&amp;quot;);
    err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);
   	nrf_gpio_cfg_output(29);
    // Enter main loop.
    for (;;)
    {
    	ble_nus_string_send(&amp;amp;m_nus, dat_array, 5);
    	nrf_delay_ms(50);
        power_manage();
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;i had mesage on my phone&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98665?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec8f08a2-1322-4261-922b-3e7b81da27e1</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;yes i change it spechial for it because in nrf Uart on my Phone i cant sent &amp;#39;\n&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98664?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284dfbc2-7102-4876-a966-c4afb5c7db0f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;From the code you posted above, the data will only be sent when the char &lt;code&gt;&amp;#39;q&amp;#39;&lt;/code&gt; is found in the received string from UART, or the buffer is filled. Do you send a &lt;code&gt;&amp;#39;q&amp;#39;&lt;/code&gt; char in the string you send from the terminal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98663?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc8a714-faf0-454e-892e-2092a2ac7901</guid><dc:creator>serzh</dc:creator><description>&lt;p&gt;this code send msg by Phone
err_code = ble_nus_string_send(&amp;amp;m_nus, data_array, index);&lt;/p&gt;
&lt;p&gt;and i chek i have conection in COM Port Toolkit.And i havent any msg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart problems</title><link>https://devzone.nordicsemi.com/thread/98662?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ebe1c02-7b8f-4e5c-8fb2-83efed1efe58</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand your issue. The message you send from the phone is supposed to be transmitted to UART terminal, not echoed back to the phone. Have you edited the example in any way? The default example does check for the newline char &lt;code&gt;&amp;#39;\n&amp;#39;&lt;/code&gt;. while your code looks like it looks for the char &lt;code&gt;&amp;#39;q&amp;#39;&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>