<?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>Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43475/using-ble_template-example-to-transfer-data</link><description>I am using nrf52832, SDK 15.2, Softdevice 6.1, Embedded Studio to program a custom PCB device. My aim is to eventually send data I have from a peripheral device (through SPI) via ble to any mobile app. As of now, for starters, I am trying the send the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Mar 2019 08:11:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43475/using-ble_template-example-to-transfer-data" /><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/176613?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 08:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fe34d2d-403f-44b5-a13e-3fd3d5625a02</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh. So DRDY is the same as MISO? I base this assumption on e.g. this:&lt;br /&gt;&lt;a href="http://www.tij.co.jp/document-viewer/jp/ADS1018-Q1/datasheet/application_and_implementation"&gt;http://www.tij.co.jp/document-viewer/jp/ADS1018-Q1/datasheet/application_and_implementation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="noob_with_ucontrollers"]The only problem is with the MISO pin (Pin 9) that seems to have a DC of 3.3V[/quote]
&lt;p&gt;&amp;nbsp;Have you defined the MISO pin as an output? I don&amp;#39;t understand exactly what you mean. Or do you mean that the sensor is keeping it high? Can you try to measure the voltage between GND and MISO on the nRF (pin 9), and between GND and the data out (MISO? DRDY?) on the sensor?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/176596?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 05:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f2d03bc-afca-4be8-a2ef-2e426181c47e</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;My nrf52 is connected to an ADC (ads1220) on a custom made PCB, the NRF is the master. They communicate via SPI. I don&amp;#39;t use or initialize DRDY. It does not exist anywhere in the software. From my experience running spi with the adc before, using DRDY is not necessary.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Yes I get proper pulses on the MOSI line (Pin 8), and Clock (pin 7). I checked my DRDY and the ADS seems to be giving out a proper DRDY signal. The only problem is with the MISO pin (Pin 9) that seems to have a DC of 3.3V.... I use MODE_1 because my ADS1220 is compatible with that.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/176136?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 10:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56d9f1ae-98b8-43a6-89ba-40bd2a91ea42</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What is your SPI connected to actually? What is DRDY? The nRF is the SPI master, right? Are you seeing any data on the MOSI line? There are 4 SPI modes, usually defined in&amp;nbsp;spi_init(). What mode are you trying? Can you try the other modes as well?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/176012?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 16:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39fc8a04-f23a-40cb-bc82-7e86400ada1c</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I put my_data_call() in a loop in the main function like this :&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
   bool erase_bonds;

    // Initialize.
    
//    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();
    spi_init(); 
     nrf_gpio_cfg_input(SPI_MISO_PIN, NRF_GPIO_PIN_NOPULL); 
    

    // 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();
spi_xfer_done = false;
 


     data_array [0] = 0x78; 
     data_array [1] = 0x79; 
     data_array [2] = 0x86; 
     data_array [3] = 0x65; 
     data_array [4] = 0x76;

//     NRF_LOG_DEBUG(&amp;quot;Hi there&amp;quot;);
    // Enter main loop.
    for (;;)
    {
        idle_state_handle();
        my_data_call(); 
    }
}


/**
 * @}
 */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I put my_data_call() in a for(;;) loop at the end of the Main right after ide_state(). When I did this to send a random character string , I would get proper data. This is why I kept it in the same place for SPI....&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I checked that my SPI_EVENT_HANDLER is called and spi_xfer_done is true...&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I cannot use LOG or RTT because calling their functions stops my SPI from working entirely (I stop getting a clock signal on Pin 7 SPI_CSK_PIN). Is there another way I can check my m_rx_buf?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;My clock (pin 7 has a clock of 125 kHz), DRDY (pin 10),&amp;nbsp; chip select (pin 6) pins work normally as I see in the oscilloscope. The MISO pin (pin 9) is fixed at a DC HIGH value, 3.3V (not pulsed but DC), and I think that is why I see a fixed &amp;quot;FFFF..&amp;quot;..&amp;nbsp; &lt;br /&gt;I though that maybe pin 9 is being somewhere else, so I configure NFCT_PINS_AS_GPIOS in preprocessor settings, I tried a NOPULL config on MISO as described in this new ticket I started (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44778/miso-pin-acting-weird)"&gt;devzone.nordicsemi.com/.../miso-pin-acting-weird)&lt;/a&gt; but these things didn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/175836?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 08:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1165012-bff1-4f96-91fe-ae348ae56b85</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;From where do you call my_data_call()? I suspect that you are seeing some interrupt blocking. Are you getting past while (!spi_xfer_done)? If it moves past, are you getting anything in the m_rx_buf? And if m_rx_buf is not empty, are you getting NRF_SUCCESS on ble_nus_data_send?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/175803?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 02:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef1cd37-2641-4566-8f1f-bdf925469a54</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;Yes I meant ble_nus_data_send().&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am posting here again as a follow up to my project. I call ble_nus_data_send() in my own custom function which I call in the main loop and it&amp;#39;s working great. I started off with the ble_uart example (SDK 15.2).&amp;nbsp; I can initialize random data arrays and the ble_nus_data_send() will send them to the nrf toolbox when I call it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When I could do that successfully, I added SPI initialization and functions to the example to call data via SPI from an ADC. However, my SPI does not work in this project (I see nothing on the CLK pin ((pin #7), no clock signal) and all I see on my NRF Toolbox app is &amp;quot;0xFFFFF....&amp;quot; no matter what the input to my adc..&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Why would the bluetooth project not allow normal SPI functionality? Where does the &amp;quot;0xFFF&amp;quot; come from? My code does build and flash without errors.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;void my_data_call () {

// Initialize variables 
        
   uint32_t err_code;
   uint16_t length = (uint16_t)m_rx_length;

   // Call to SPI transfer 
                        
memset(m_rx_buf, 0, m_rx_length);
memset(m_tx_buf, 0, m_tx_length);
spi_xfer_done = false;
m_tx_buf [0] = 0x08;   // Start Conversion command 
nrf_gpio_pin_clear (SPI_CS_PIN);
        APP_ERROR_CHECK(nrf_drv_spi_transfer(&amp;amp;spi, m_tx_buf, m_tx_length, m_rx_buf, m_rx_length));

        while (!spi_xfer_done)
        {
            __WFE();
        }




 //   Call to BLE SPI  !!

 if(m_conn_handle !=&amp;#160;BLE_CONN_HANDLE_INVALID) {

                        err_code = ble_nus_data_send(&amp;amp;m_nus, m_rx_buf, &amp;amp;length, m_conn_handle);
                        if ((err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp;
                            (err_code != NRF_ERROR_RESOURCES) &amp;amp;&amp;amp;
                            (err_code != NRF_ERROR_NOT_FOUND))
                        {
                            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: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170546?ContentTypeID=1</link><pubDate>Tue, 12 Feb 2019 09:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:091c7fc5-b7d7-4e2f-9c53-251f4822a0ff</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;nus_data_transfer() isn&amp;#39;t a function from our SDK? Do you mean ble_nus_data_send()?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see. Well. You need somewhere to call ble_nus_data_send() from, that is correct. It can either be a button press (GPIO interrupt), a UART message interrupt, a timer timeout interrupt, or whatever you like. When do you want to send data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170434?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 15:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aa157c2-f9be-4a18-a502-e508275b3f3c</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I see. Thank you Edvin.&amp;nbsp;&lt;br /&gt;I think what I meant to ask was that does the nus_data_transfer&amp;nbsp; function work with event interrupts only?&amp;nbsp;&lt;br /&gt;I am getting data from my sensor via SPI module continuously and I am not using an interrupt, I am just requesting data using a sensor read function..., however, I get the feel that since the main () program of the ble_uart example enters idle_state once it starts advertising , you &lt;strong&gt;always&lt;/strong&gt; need an interrupt driven event to prompt a ble_transfer (i.e. the ble_data_send() function).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If I am using the ble_nus_data_send ()&amp;nbsp; in the main () program I feel like it won&amp;#39;t be called because the main remains stuck in the idle_state loop and the program is advertising continuously. I think I need an interrupt or an event (UART, GPIO or NUS) to call the nus_data_send().... Am I wrong about this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170414?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 14:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb694a5-f93b-4442-80c9-7aab3ec0bfd3</guid><dc:creator>Edvin</dc:creator><description>[quote user="noob_with_ucontrollers"]I also had another question, the uart_evt_handle () function is called in case a uart event occurs and the nus_data_handler is called when data is received via BLE right?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;That is correct.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="noob_with_ucontrollers"]Can we send data via ble using the nus_data_handler?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Yes you may. Just add ble_nus_data_send(...) in your event handler, or wherever you want to send data from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170413?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 14:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f3f0603-907b-49d4-9226-e4de07b05a2c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It seems that you are trying to send 0x01, 0x02, 0x03, while text strings are using ascii characters.&lt;/p&gt;
&lt;p&gt;Check out this table:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.asciitable.com/"&gt;http://www.asciitable.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The ascii value for &amp;#39;1&amp;#39; is 0x31, &amp;#39;2&amp;#39; is 0x32 and &amp;#39;3&amp;#39; is 0x33. Try to send these values, and you should see that it says: &amp;#39;123&amp;#39; received.&lt;/p&gt;
&lt;p&gt;For good measure you can add 0x0D0A at the end (carriage return and linefeed, which is typically added on the end of these lines. This is equivalent to pressing &amp;quot;enter&amp;quot;).&lt;/p&gt;
&lt;p&gt;I also see that you use &amp;amp;length which is the size of the array. You may of course do this, but there is no point in sending the entire array if you actually only send 3 characters. Try setting it to 3 (or 5 if you add 0x0D0A at the end).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170253?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 02:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44f43e11-7cfe-4a11-99ba-5321bdf45a8a</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I also had another question, the uart_evt_handle () function is called in case a uart event occurs and the nus_data_handler is called when data is received via BLE right?&amp;nbsp;&lt;br /&gt;Can we send data via ble using the nus_data_handler?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170241?ContentTypeID=1</link><pubDate>Sun, 10 Feb 2019 18:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c02410f9-ebf2-4c09-8b18-bc1b067c61b7</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;, thank you very much. Your diagnosis about the problem being with uart pins and the uart data send failing and causing a crash is correct. I tried commenting out //uart_init() from main and then changing the HCI_UART_RX_PIN_NUM and HCI_UART_TX_PIN_NUM in the sdk_config.h (there were no other uart_pin definitiions in the sdk_config.h file) but when these two things didn&amp;#39;t work I commented out the&amp;nbsp;&lt;span&gt;APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication); from the APP_UART_COMMUNICATION_ERROR event.&lt;/span&gt;&amp;nbsp;This last thing worked and my PCB device started advertising!! So I guess the program was stuck in an error handler event..&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am now trying to use the uart_evt_handle () function to send a random string/number via BLE to the mobile app instead of getting data from the uart. This is how my edited function looks like.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1549823398394v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I do not get the string/random number on the App though.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is what I get on the RTT log:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1549823468570v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And this is what I see on the NRFToolbox Nordic Uart android phone app I am using:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It connects to the device but don&amp;#39;t think it&amp;#39;s sending the int array &amp;quot;&amp;quot;123&amp;quot; correctly. If you have any suggestions please let me know!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1549823739322v3.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1549823759821v4.png" alt=" " /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally, I wanted to ask you where I could read more about APP_ERROR_HANDLER and _DEBUG use?&amp;nbsp;&amp;nbsp;&lt;br /&gt;Again, thank you very much Edvin for being helpful!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using ble_template example to transfer data</title><link>https://devzone.nordicsemi.com/thread/170162?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 15:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe975e36-8e71-41e3-b808-1e05addeae2c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Ok, so from the other thread that &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37152/using-ble-nus-service-without-uart/170155"&gt;you posted on&lt;/a&gt;, you mention that you use Segger Embedded Studio, so the IDE will flash the softdevice for you. This is not the problem, then.&lt;/p&gt;
&lt;p&gt;Since the ble_template example runs and advertises, then it seems like your pcb has an external LFXTAL. (I am just mentioning this because many PCBs don&amp;#39;t, and that is a possible cause of the issue when the BLE examples doesn&amp;#39;t advertise).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, that leaves it to be related to the NUS service or the UART.&lt;/p&gt;
&lt;p&gt;I suggest that you get familiar with our debugging system, or error_handler.&lt;/p&gt;
&lt;p&gt;My bet is that one place in your code you have an APP_ERROR_CHECK(err_code) with an err_code != 0 (==NRF_SUCCESS).&lt;/p&gt;
&lt;p&gt;Is it possible for you on your PCB to monitor the logging? In the ble_app_uart example that would be the RTT log, which you can monitor&amp;nbsp;in Segger Embedded Studio.&lt;/p&gt;
&lt;p&gt;It probably just writes &amp;quot;Fatal error&amp;quot; at the end of the log, but if you define DEBUG in your preprocessor defines, it should give you the file name, line number and err_code that caused the error.&lt;/p&gt;
&lt;p&gt;My guess, if you are running the ble_app_uart example, is that you get a communication error on the physical uart:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case APP_UART_COMMUNICATION_ERROR:
            APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You need to either set the UART RX pin to a pin that isn&amp;#39;t floating (not connected to anything). This can cause this error. Alternatively, if you don&amp;#39;t use the UART, just comment out uart_init() in your main() function.&lt;/p&gt;
&lt;p&gt;Or the last option is to comment out APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication); from the APP_UART_COMMUNICATION_ERROR event.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If this is not the problem, then you need to check your log for info on where the error comes from.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>