<?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>what is  max num all of Characteristics  in the project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12338/what-is-max-num-all-of-characteristics-in-the-project</link><description>my project use s110 8.0.0;I&amp;#39;m using nRF51422_xxAC. 
 And my project have 7 services.all the Characteristics is 81. 
 But after I had add 23 Characteristics ,I can&amp;#39;t add any Characteristics,but the function sd_ble_gatts_characteristic_add is return NRF_SUCCESS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 05 Mar 2016 03:03:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12338/what-is-max-num-all-of-characteristics-in-the-project" /><item><title>RE: what is  max num all of Characteristics  in the project?</title><link>https://devzone.nordicsemi.com/thread/46678?ContentTypeID=1</link><pubDate>Sat, 05 Mar 2016 03:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:833a111c-2406-4521-8b07-dd5f3c4ef8df</guid><dc:creator>lgj</dc:creator><description>&lt;p&gt;Yes, i confirm it return NRF_SUCCESS. If  I use BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK,it also to .And i had make the  ble_enable_params.gatts_enable_params.attr_tab_size = 0x700; it also to .&lt;/p&gt;
&lt;p&gt;It maybe has no  attribute memory .&lt;/p&gt;
&lt;p&gt;Then  I reference RK answer.&lt;a href="https://devzone.nordicsemi.com/question/39898/nrf_error_no_mem-error-when-add-service/"&gt;RK &amp;#39;S ANSWER&lt;/a&gt;
I Configuration my project IROM1  size from 0x28000 to 0x28200,and set
ble_enable_params.gatts_enable_params.attr_tab_size = 0x900;
it successs,I can  add   Characteristic.
thanks for your answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is  max num all of Characteristics  in the project?</title><link>https://devzone.nordicsemi.com/thread/46677?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 11:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa8e617-7451-423a-8528-f7e19b81e75d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is not an exact number. It depends on different factors.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit suprised that you get NRF_SUCCESS if the attribute table is full, I would expect NRF_ERROR_NO_MEM. Please confirm, and I will check it out.&lt;/p&gt;
&lt;p&gt;You can set the size of the attribute table when you enable the SoftDevice, examine the struct given to &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html?cp=2_7_0_0_0_2_0_1_3_0#ga0f632bec36100e4d2d74672ccbb4218b"&gt;sd_ble_enable&lt;/a&gt;()&lt;/p&gt;
&lt;p&gt;Another trick is to store the attribute value in user memory, instead of stack memory. Use BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK. Then you of course need to ensure that the value has a valid location in user memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>