<?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>It is a question about an err_code &amp;#39;NRF_ERROR_DATA_SIZE&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100472/it-is-a-question-about-an-err_code-nrf_error_data_size</link><description>Hi, 
 I am doing some development about BLE on 52832 recently, and I came across some problems. 
 When &amp;#39;sd_ble_gap_connect&amp;#39; is called , I got &amp;#39;NRF_ERROR_DATA_SIZE&amp;#39;. Does it mean that the BLE stack size is too small? 
 But I tried to increase the size</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2023 08:19:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100472/it-is-a-question-about-an-err_code-nrf_error_data_size" /><item><title>RE: It is a question about an err_code 'NRF_ERROR_DATA_SIZE'</title><link>https://devzone.nordicsemi.com/thread/429481?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 08:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bad02b8-2e84-4c97-b948-e3f6e9bd05c7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It depends on when you establish a new connection. If the last connection is still active you may have handle 0x01 if the connection 0x00 has not been fully terminated.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: It is a question about an err_code 'NRF_ERROR_DATA_SIZE'</title><link>https://devzone.nordicsemi.com/thread/429471?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 07:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17417f54-9096-405e-b2df-edcca664e0f9</guid><dc:creator>Noxstella</dc:creator><description>&lt;p&gt;&lt;span&gt;Hey Hung, Sorry for late reply&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Every time a device is conneted ,I use RTT_LOG to show the handle of it .But when I try to connect a peripheral device ,the log shows two different handls &amp;#39;0x00&amp;#39; and &amp;#39;0x01&amp;#39;. It&amp;nbsp; seems that this&amp;nbsp;problem&amp;nbsp;may lead to a &amp;#39;NRF_ERROR_CONN_COUNT&amp;#39; error you mentioned.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: It is a question about an err_code 'NRF_ERROR_DATA_SIZE'</title><link>https://devzone.nordicsemi.com/thread/429264?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 11:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c982c38a-a292-4863-98d6-2acd9fe9ad78</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you sure it&amp;#39;s&amp;nbsp;&lt;span&gt;NRF_ERROR_DATA_SIZE ( error 12) because this error code is not in the list of return codes for&amp;nbsp;sd_ble_gap_connect().&amp;nbsp;&lt;br /&gt;Could that be error 0x12 instead of decimal 12 ? If it&amp;#39;s 0x12 then it&amp;#39;s&amp;nbsp;NRF_ERROR_CONN_COUNT which mean you exceed the maximum number of concurrent connections.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure you have correct configuration of:&amp;nbsp;&lt;br /&gt;NRF_SDH_BLE_PERIPHERAL_LINK_COUNT&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_SDH_BLE_CENTRAL_LINK_COUNT&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And&amp;nbsp;NRF_SDH_BLE_TOTAL_LINK_COUNT&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]By the way,when&amp;nbsp; I tried to connect one&amp;nbsp; peripheral device , I got two different connecting handles.What can cause the problem to occur?[/quote]
&lt;p&gt;&lt;span&gt;Please explain how yo find that you have different handles and which handles you have ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>