<?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>Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36800/error-multiple-definition-when-using-2-ble-services-ble_nus-and-ble_nus_c</link><description>Hello, 
 We are using nRF52832 DK with SES IDE and latest SDK 15.0 sd 132. We have developed one multiplink central device and modified ble_nus_c with our application to connect our multiple ble sensor node. 
 Everything is working central device is scanning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jul 2018 13:20:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36800/error-multiple-definition-when-using-2-ble-services-ble_nus-and-ble_nus_c" /><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141937?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc18f96b-887c-4452-924f-c30bab4acb73</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Go into&amp;nbsp;&lt;span&gt;ble_nus_c.c source file and replaced with:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;#define NRF_LOG_MODULE_NAME ble_nus&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;by&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRF_LOG_MODULE_NAME &lt;strong&gt;ble_nus_c&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;To fix multiple definitions errors&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141932?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c383248-88fe-4cdc-a2ad-720541cfb7d2</guid><dc:creator>kishor babu</dc:creator><description>&lt;p&gt;where i need to make this change?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141646?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 09:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef4bf5ec-fe7c-4c82-9209-b5dd307cdbf1</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Great Jorgen,&lt;br /&gt;solved our issue by changing in&amp;nbsp;&lt;span&gt;ble_nus_c.c to&amp;nbsp;&lt;/span&gt;&lt;code&gt;#define NRF_LOG_MODULE_NAME ble_nus_c.&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Thank you so much....for giving information because we have lots of debugging but was unable to found.&amp;nbsp;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141641?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 09:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ebb5c1-81f7-4090-a0a6-4b22dfb102d7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34116/compilation-error-when-including-ble_nus_c-c-along-with-ble_nus-c"&gt;known issue&lt;/a&gt;. Please change ble_nus_c.c:51 to&amp;nbsp;&lt;code&gt;#define NRF_LOG_MODULE_NAME ble_nus_c&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141308?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 11:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78e7501a-9fcf-4fb3-8e14-d2fa9d05342b</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Actually i have read and understand whole code but unable to find where the multiple definitions has defined.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;will you please help me How i can identify multiple definitions issue and used one of them for well working.&amp;nbsp; Because compiler not showing any line number or whatever where exactly multiple definitions defined.&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141304?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 10:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a16257-b392-4417-91ab-8d152122974f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No that&amp;nbsp; is not the right way to solve the multiple definitions issue. The right way to solve it is&amp;nbsp; to find why you have two routines named the same. Most likely you have two routines named the same which do entirely different things and the linker has just picked one of them so it doesn&amp;#39;t work for the other case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to actually read the code you&amp;#39;re compiling and work out where the symbols are coming from, There is no magic wand, you have to do the work.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: Multiple definition when using 2 BLE Services BLE_NUS and BLE_NUS_C</title><link>https://devzone.nordicsemi.com/thread/141297?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 09:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd445979-b283-45c2-8788-bbf2fe95389d</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have solved this error by modified Segger setting which is go to ---&amp;gt; project---&amp;gt;option----&amp;gt;linker----&amp;gt;allow to multiple definition replaced Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is this above method is right way to solve this multi definitions&amp;nbsp; issues.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;After compiling program build is successful but now problem is when i connect Nordic UART android&amp;nbsp; app to central is connected and notification also enabled. Android phone connection is working well able to send message to central device. But after disconnect app connection central device is already scanning and our sensor device is connected to central but not sending data to central.&lt;/p&gt;
&lt;p&gt;Now getting following error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;error&amp;gt; nrf_ble_gatt: sd_ble_gatts_exchange_mtu_reply() returned NRF_ERROR_INVALID_PARAM.
&amp;lt;info&amp;gt; app: Discovery complete.
&amp;lt;info&amp;gt; app: Connected to device with Nordic UART Service.
&amp;lt;info&amp;gt; app: Disconnected.
&amp;lt;info&amp;gt; app: NUS central link 0x0 disconnected (reason: 0x13&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Our sensor device is connected to central then got the above error and after few second it is disconnected automatically.&lt;/p&gt;
&lt;p&gt;Another thing is when i connect first sensor device to central is working and also sensor device sent all data to central. But if android phone connect then try to connect sensor device is not working got above error.&lt;/p&gt;
&lt;p&gt;Why this happen please help me to solved this issue.&lt;/p&gt;
&lt;p&gt;Thanks...!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>