<?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>Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54979/receiving-data-from-uart-via-a-peripheral-device</link><description>Hi 
 I am working with a Nordic nrf52840dk using segge and sdk 16. 
 I am using the nordic UART example in examples/peripheral/uart. 
 The issue I am having is that my data being sent to this device can not be read from the nordic board. 
 Below is an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Dec 2019 12:52:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54979/receiving-data-from-uart-via-a-peripheral-device" /><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224736?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 12:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b67ee4d8-5752-4aeb-9414-d860c7fce218</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;I am happy to hear that it works &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224659?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 10:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c50a6847-015f-486b-b3c0-030c14fbae70</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for the help, I&amp;#39;ve gotten my solution to work now, Just wanted to thank you for the support it really helped a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224235?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 15:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d43cac9-9c01-42a5-a7b4-684ed8fc67f3</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Ok I&amp;#39;ll have a detailed look through. But, I&amp;#39;ve stepped through the code when the error is thrown and I can not identify why it occurs. It goes from this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;m_event_handler(&amp;amp;app_uart_event);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;app_error_fault_handler(NRF_FAULT_ID_SDK_ERROR, 0, (uint32_t)(&amp;amp;error_info));
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This then runs to NRF_BREAKPOINT_COND&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224227?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 14:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c6ebe1-705b-4381-b2f6-31cd142986f8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, that is correct. If you test the debug build you should see a sensible message in the log, and if there is problems with the logging you can inspect the info struct yourself. I think you will find &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;An introduction to error handling in nRF5 projects&lt;/a&gt;&amp;nbsp;useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224223?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 14:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09a2169e-4969-4076-863b-0248f69af401</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_FAULT_ID_SDK_ERROR       (NRF_FAULT_ID_SDK_RANGE_START + 1) /**&amp;lt; An error stemming from a call to @ref APP_ERROR_CHECK or @ref APP_ERROR_CHECK_BOOL. The info parameter is a pointer to an @ref error_info_t variable. */&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224220?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 14:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b1e1594-1c09-4837-a6f6-9d571e48880b</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;0x0000000000004001.&lt;/p&gt;
&lt;p&gt;Also how does it tell me what the error is? I don&amp;#39;t have an error code lookup table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224219?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 14:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7809f02e-e086-4277-8740-3f910e997e33</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;What was the error code? That usually tells you what the problem was.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224216?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 14:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fed0e71-5466-4ea9-8329-862c28efcce1</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;It runs from&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = sd_ble_gap_adv_stop(m_adv_handle);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and sometimes from :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = sd_ble_gap_adv_start(m_adv_handle, APP_BLE_CONN_CFG_TAG);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Both of which are within my ad mod code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224212?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 14:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe6fcc3-04af-4df7-af9c-6333e27c5a18</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I do have another issue. After a short while I do get Fatal error. Was after 27 seconds of reading fine. Any idea what could cause this? Or how to implement a restart feature&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224201?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 13:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:318ca037-0280-4532-ac28-2d288d6efff1</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;FIXED IT&lt;/p&gt;
&lt;p&gt;I forgot to start the add before moding it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224197?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 13:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0046f52-9f23-4086-b03a-a965f9887df6</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I get NRF_FAULT_ID_SDK_ERROR&amp;nbsp;0x0000000000004001.&lt;/p&gt;
&lt;p&gt;This comes from NRF_DRV_UART_EVT_TX_DONE: within the app_uart_fifo.c.&lt;/p&gt;
&lt;p&gt;When it runs the m_event_handler&lt;/p&gt;
&lt;p&gt;This runs from the line of code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224195?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 13:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba2b413-b94f-4b97-8d2b-ef6d78bdd243</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Generally, you need to debug and see what the fatal error is. If you enable debug builds (Select Debug instead of release from the build target configuration dropdown) and have RTT logging enabled, you will get the error code and location printed in the log. Most of the times this will imediately tell you what the problem is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224193?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 13:28:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b575ca97-b6b4-4f92-9462-84738cca9147</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Ok I&amp;#39;ve merged them and get a fatal error. Here is my RTT+ beacon code(main) This works when i remove the line advertising_mod:&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    uint32_t err_code;
    char string[MAX_TEST_DATA_BYTES];
    char c;
    int pos;
    
    T1_data_1 = 0;T1_data_2 = 0;T2_data_1 = 0;T2_data_2 = 0;T3_data_1 = 0;
    T3_data_2 = 0;P1_data_1 = 0;P1_data_2 = 0;P2_data_1 = 0;P2_data_2 = 0;
    // Initialize.
    timers_init();
    leds_init();
    power_management_init();
    ble_stack_init();
    advertising_init();
    //hfxo_enable();

    log_init();

    NRF_LOG_INFO(&amp;quot;UART example started.&amp;quot;);

    bsp_board_init(BSP_INIT_LEDS);

    const app_uart_comm_params_t comm_params =
      {
          RX_PIN_NUMBER,
          TX_PIN_NUMBER,
          RTS_PIN_NUMBER,
          CTS_PIN_NUMBER,
          UART_HWFC,
          false,
#if defined (UART_PRESENT)
          NRF_UART_BAUDRATE_115200
#else
          NRF_UARTE_BAUDRATE_115200
#endif
      };
    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                         UART_RX_BUF_SIZE,
                         UART_TX_BUF_SIZE,
                         uart_error_handle,
                         APP_IRQ_PRIORITY_LOWEST,
                         err_code);

    APP_ERROR_CHECK(err_code);
    pos = 0;
    //UART get code RTT RX code
    while (true)
    {
        // Get next gyte from FIFO
        while (app_uart_get(&amp;amp;c) != NRF_SUCCESS);
        string[pos] = c;
        // Assume that all strings end with \n. If end, print and start over.
        if (string[pos] == &amp;#39;\n&amp;#39;)
        {
            string[pos+1] = &amp;#39;\0&amp;#39;;
            NRF_LOG_INFO(&amp;quot;Received string: \&amp;quot;%s\&amp;quot;&amp;quot;, string);
            pos = 0;
        }
        else
        {
            pos++;
        }
       
        //nrf_delay_ms(1000);//Delay 1 second
        counter++;
        idle_state_handle();
        data_changed = true;
        if(data_changed==true)
        {
          advertising_mod(counter,T1_data_1,T1_data_2,T2_data_1,T2_data_2,00,00,70,80,70,80);//Only have two temperature sensors
          data_changed = false;
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is my other beacon code. This outputs a ble_advert and increments a counter. This can be seen using nrf connect.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
   
    bool erase_bonds;

    T1_data_1 = 0;T1_data_2 = 0;T2_data_1 = 0;T2_data_2 = 0;T3_data_1 = 0;
    T3_data_2 = 0;P1_data_1 = 0;P1_data_2 = 0;P2_data_1 = 0;P2_data_2 = 0;
    
    // Initialize.
    uart_init();
    log_init();
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();
    bsp_board_led_invert(2);
    // Start execution.
    //printf(&amp;quot;\r\nUART started.\r\n&amp;quot;);
    
    NRF_LOG_INFO(&amp;quot;Debug logging for UART over RTT started.&amp;quot;);
    advertising_start();
    advertising_mod(counter,00,00,00,00,00,00,70,80,70,80);//Only have two temperature sensors
    // Enter main loop.
    for (;;)
    {
        nrf_delay_ms(1000);
        //printf(&amp;quot;Test\n\r&amp;quot;);//Works if the uart board is disconnected
        //printf(&amp;quot;Test&amp;quot;);//Works if the uart board is disconnecte
        counter ++;
        idle_state_handle();
        data_changed = true;
        if(data_changed==true)
        {
          printf(&amp;quot;data changed value is: %d\r\n&amp;quot;,data_changed);
          advertising_mod(counter,T1_data_1,T1_data_2,T2_data_1,T2_data_2,00,00,70,80,70,80);//Only have two temperature sensors
          data_changed = false;
          printf(&amp;quot;data changed value is: %d\r\n&amp;quot;,data_changed);
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I need to figure a way to merge them and have them both run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224183?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 13:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4bf85e6-b804-4321-8f51-c4711343b36f</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Ok thanks, that seemed to work. Now I&amp;#39;ll try merging my ble_Advert code with it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224165?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 12:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fac16f2e-37eb-49f4-b401-6f53d0abab99</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I checked your application, and the problem is that you don&amp;#39;t process logs in your main loop, so, therefore, you should set&amp;nbsp;NRF_LOG_DEFERRED to 0 in your projects sdk_config.h. With that in place, the RTT log is output correctly.&lt;/p&gt;
&lt;p&gt;(I also noticed that you added include paths for specific files rather than for the whole project. Instead of modifying the options for app_uart_fifo.c and main.c, you should instead have added it to the project-wide include path (from Project -&amp;gt; Options...). Not that it really matters, but that is cleaner and easier than adding it for specific files, and is what is done in all our example projects.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224159?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 12:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e24c796-5a6b-462f-b0a1-f01d3ba447fc</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_beacon_5F00_not_5F00_working_5F00_rtt.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_beacon_5F00_not_5F00_working_5F00_rtt.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That is the code I am using inside the ble_peripheral folder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224158?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 12:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95db85f1-aeb5-46d5-b62a-88a1dea7ca96</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;There are a few other potential issues as well, for instance if you have enabled deferred logging in sdk_config.h, but do not process those. Can you send me your project, including the main.c file and sdk_config.h som that I can see? Also, do you get an errors or warnings when building? Any interesting things when you debug?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224154?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 12:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56677d31-60f6-4713-be1d-ac378c76329b</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Ok I&amp;#39;ve gone through the entire sdk_config.h for the RTT and compared it to the ble_app_beacon. Changed a few differences where i found them but, the RTT view still does not have anything inside of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224153?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 12:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491fda3d-3638-4d95-84d6-08a03561da4e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, that is also expected. UART logging is default in most BLE examples, and you cannot use the same UART instance for two things at the same time. I should have remembered to mention that as well, but generally, the thing is that there is som many small details that the sensible way of doing this is testing and fixing until it works. And then it does not take much time since every single issue is usually easy to understand from the error (being compile-time, link-time or runtime).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224151?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 11:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27461259-6db0-4930-823f-d846200edfbc</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;fatal error is gone when i change&amp;nbsp;NRF_LOG_BACKEND_UART_ENABLED from 1 to 0. As this is what it is in the RTT RX sdk_config&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224149?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 11:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b0aca5a-b147-466d-b564-49e42bee0bb1</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Yeah changed those, i get app fatal error to the rtt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224148?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 11:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05b27ed4-e077-46c1-a1e0-f11afab0a10b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Have you enabled RTT logging in the sdk_config.h file? You need to make sure&amp;nbsp;NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED are both set to 1, and should also set&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224145?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 11:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c487e3f0-b94b-4c02-8b37-02a731243537</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I&amp;#39;ve still got a setup / configuration issue. If i remove all the code from the ble_app_beacon example and paste in the RTT RX code.&lt;/p&gt;
&lt;p&gt;It does not output data to the RTT but the RTT code (in the peripheral folder does).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But the ble_beacon code complies&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224142?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 11:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136bef28-45bd-41b0-af91-dbc4c04402c3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I forgot to mention that you cannot enable the HFCO the way I did it in the UART example when you have the SoftDevice. Then you need to use the SoftDevice API, or the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/hardware_driver_clock.html?cp=6_1_2_0_0"&gt;&lt;strong&gt;clock driver&lt;/strong&gt;&lt;/a&gt; which does it for you. Then you enable the clock by a call to&amp;nbsp;nrf_drv_clock_hfclk_request(). Alternatively, you can just remove that part of the code (i.e. not start the HFXO)&amp;nbsp;&lt;em&gt;if&lt;/em&gt; that is OK for the UART communication.&lt;/p&gt;
&lt;p&gt;Note that if current consumption is an issue, you should only enable the HFXO when there is a UART transaction. That is a bit hidden when you use app_uart_fifo, since all happens in the library. So if you stick with that approach you can implement it in the library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving data from UART via a peripheral device</title><link>https://devzone.nordicsemi.com/thread/224131?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 10:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eef1e84-7410-42ec-94b9-dde2cf61b1c1</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;The error i think comes from hfxo_enable.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One issue is though if I use your RTT RX code, it crashes when I debug and try stepping through. So I presume when I merge the projects I won&amp;#39;t be able to debug it via the debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>