<?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>Problems with adding openthread to gcc BLE project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24399/problems-with-adding-openthread-to-gcc-ble-project</link><description>Hi, 
 I&amp;#39;m trying to add Openthread support to my project, which is based on ATT_MTU_Throughput example. I followed the tutorial in infocenter, but I still have some problems in linking stage: 
 
 Thanks from advance for your help.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2017 07:41:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24399/problems-with-adding-openthread-to-gcc-ble-project" /><item><title>RE: Problems with adding openthread to gcc BLE project</title><link>https://devzone.nordicsemi.com/thread/96082?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 07:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6958400-4ce1-4d01-932f-e646de42081f</guid><dc:creator>marmio</dc:creator><description>&lt;p&gt;ok, NRF_LOG_BACKEND_USES_ UART should be 0 ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with adding openthread to gcc BLE project</title><link>https://devzone.nordicsemi.com/thread/96081?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 07:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92077e3d-49da-41c2-8925-24497b350781</guid><dc:creator>marmio</dc:creator><description>&lt;p&gt;I had to do it once again and now I have one another problem with UART, When I leave as it is i get&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/home/rolu/repos/openthread/examples/../examples/platforms/nrf52840/uart.c:243: multiple definition of `UARTE0_UART0_IRQHandler&amp;#39; _build/nrf52840_xxaa_nrf_drv_uart.c.o:C:\Users\Dell\Documents\nRF5_SDK_for_Thread_v0.10.0_e1c3d11\examples\multiprotocol\experimental\ble_app_att_mtu_throughput_rssi\pca10056\s140\armgcc/../../../../../../../components/drivers_nrf/uart/nrf_drv_uart.c:959: first defined here`
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and when I change it to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_UART_DRIVER_INSTANCE 1
#define UART0_ENABLED            0
#define UART1_ENABLED            1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;i get&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;../../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:82:19: error: &amp;#39;UART0_CONFIG_USE_EASY_DMA&amp;#39; undeclared here (not in a function)
         (CONCAT_3(UART, id, _CONFIG_USE_EASY_DMA) == 1 ? \
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;how should I configure UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with adding openthread to gcc BLE project</title><link>https://devzone.nordicsemi.com/thread/96079?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 19:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61241a35-f017-4a12-a356-adc81bff6d11</guid><dc:creator>Lukasz Duda</dc:creator><description>&lt;p&gt;One side advice for extending ATT_MTU example with Thread protocol.&lt;/p&gt;
&lt;p&gt;In the dynamic multiprotocol solution, the Timeslot API is used to achieve radio concurrency.&lt;/p&gt;
&lt;p&gt;Softdevice always gives higher priority to BLE operations over Thread operations. ATT_MTU throughput example is designed to utilize the whole radio time usage between two connection intervals (of course only during the test).&lt;/p&gt;
&lt;p&gt;Because of that Thread protocol will ungracefully try to get access to RADIO peripheral. In order to change this behaviour, you need to adjust two parameters in the ATT_MTU example to reduce the RADIO time usage on BLE from 100% to e.g. 25% (to give around 75% for Thread):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The event length and the connection interval are the primary parameters for setting the throughput of a connection. You need to change the first by reducing &lt;code&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;/code&gt; value in &lt;code&gt;sdk_config.h&lt;/code&gt; from 320 (400ms) to smaller value e.g. 25% of connection interval (for connection interval of 400ms please use value of 80 (100ms)). This will effectively give around 300ms (75%) for Thread operations in between of BLE operations (but it will also reduce BLE throughput).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Turn off &lt;code&gt;BLE_COMMON_OPT_CONN_EVT_EXT&lt;/code&gt; extension, please change &lt;code&gt;conn_evt_len_ext_enabled&lt;/code&gt; parameter to &lt;code&gt;false&lt;/code&gt; in the line number 155 of &lt;code&gt;main.c&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  .conn_evt_len_ext_enabled = false
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If this event extension option is enabled it will dynamically extend the event length when possible and so overwrite the value of &lt;code&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In order to read more about event length and dynamic event length extension please follow infocenter documentation:
&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.sds%2Fdita%2Fsoftdevices%2Fs130%2Fble_data_throughput%2Fble_data_throughput.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In all our current examples Thread has around 95%+ of radio time, since BLE applications send small amout of data and the examples don&amp;#39;t require special BLE parameters tunning.
It is possible to design application that transfer large portion of data over Bluetooth LE with maximum throughput, however this operation should be as short as possible to allow Thread protocol to access the radio (eventually put Thread device into sleep mode - see SED example).&lt;/p&gt;
&lt;p&gt;We will make sure to add description of effective BLE radio usage time and its configuration running concurrently with Thread, in the next nRF5 for Thread releases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with adding openthread to gcc BLE project</title><link>https://devzone.nordicsemi.com/thread/96080?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 13:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3ffa4f9-6688-44c5-b794-01490a84d884</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The first problem of multiple defines of RTC2_IRQHandler, is due to both &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.threadsdk.v0.10.0/thread_intro.html?cp=4_1_0_1_0#thread_hardware_requirements"&gt;OpenThread stack&lt;/a&gt; and ATT_MTU_throughput example using RTC2. ATT_MTU example use RTC2 for implementing a counter, and this counter needs to be implemented using other method/resources if you want to combine the OpenThread stack with this example. RTC0 and RTC1 cannot be used either, as these are used by the softdevice and app_timer respectively.&lt;/p&gt;
&lt;p&gt;The other errors related to &lt;em&gt;__flash_data_start/__flash_data_end&lt;/em&gt; could be caused by wrong linker script used for compilation. What Makefile/linker script do you use for your project? The default linker script for Thread/BLE multiprotocol examples are located in:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[THREAD_SDK_ROOT]/external/openthread/linker_scripts/openthread_nrf52840_multiprotocol.ld
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>