<?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 in sd_ble_gap_device_name_set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63534/error-in-sd_ble_gap_device_name_set</link><description>Hi everyone, 
 I&amp;#39;m using the nrf5_SDK_for_Mesh_v4.1.0 and i&amp;#39;m having troubles by trying to change the BLE name. 
 In the function gap_params_init i added a code to concatenate a the GAP_DEVICE_NAME with the DEVICEID so that i can have a unique name for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2020 09:26:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63534/error-in-sd_ble_gap_device_name_set" /><item><title>RE: Error in sd_ble_gap_device_name_set</title><link>https://devzone.nordicsemi.com/thread/259390?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 09:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea0e298-e5a1-4b94-be11-d5dbeb41e33e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Error code 3 from &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.0.1%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=gae779f7eed346027dc4cbaf438352e5db"&gt;sd_ble_gap_device_name_set()&lt;/a&gt; is &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.0.1%2Fgroup__nrf__error.html&amp;amp;anchor=gadf8b0c33ea15352808e5ac7f69c2be8a"&gt;NRF_ERROR_INTERNAL&lt;/a&gt;. It is not directly documented why this would happen, but there might be issues with the arguments that you send in, that was not detected before they caused an issue.&lt;/p&gt;
&lt;p&gt;Suggestions for how to start debugging this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Figure out what device_name looks like, and whether it is actually a UTF-8 encoded, non NULL-terminated string.&lt;/li&gt;
&lt;li&gt;Check that it does not get too long to fit in the char array of size 15 that you use for it, as if not you do have a buffer overflow error in your code. In this case, it would mean some of the other local variables in that function are overwritten/corrupted.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>