<?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>Data length extension causes NRF_ERROR_NO_MEM on services init</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30852/data-length-extension-causes-nrf_error_no_mem-on-services-init</link><description>Using SDK 14.0.0 with an nRF52832, I&amp;#39;m trying to use the data length extension, following some sample code found in this post: 
 https://devzone.nordicsemi.com/f/nordic-q-a/24840/using-dle-and-nrf_ble_gatt_max_mtu_size-23 
 Here&amp;#39;s how I init the BLE stack</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Feb 2018 13:31:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30852/data-length-extension-causes-nrf_error_no_mem-on-services-init" /><item><title>RE: Data length extension causes NRF_ERROR_NO_MEM on services init</title><link>https://devzone.nordicsemi.com/thread/122302?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 13:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86a5278b-0c0a-4126-b69d-c915d5fe688e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;the size requirement is static as long as long as you always initialize your services with the same parameters . If not, you should account for the worst case (max. number of characteristics, max attribute length, etc).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length extension causes NRF_ERROR_NO_MEM on services init</title><link>https://devzone.nordicsemi.com/thread/122289?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 12:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d14be4-189e-43bd-b54a-dfa3ee93eddb</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;OK, does this get&amp;nbsp;safer if I do it on a later SDK version? Say, 14.1 or 14.2 or even 15.0 once it ships? If my test coverage is not good, am I risking hitting an&amp;nbsp;&lt;span&gt;NRF_ERROR_NO_MEM at runtime in the field?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length extension causes NRF_ERROR_NO_MEM on services init</title><link>https://devzone.nordicsemi.com/thread/122282?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 12:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab1dcd86-ea9f-4c1a-932c-9ad2c119ef3e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Unfortunately, there is no easy way to calculate the required size (the internal table structure is not documented). We actually recommend to determine the required size by trial and error. I.e., increase the ATT table size until you no longer get the&amp;nbsp;&lt;span&gt;NRF_ERROR_NO_MEM&amp;nbsp;error. Note that the size must be a multiple of 4.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length extension causes NRF_ERROR_NO_MEM on services init</title><link>https://devzone.nordicsemi.com/thread/122193?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 18:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4812e689-1c09-4943-9a5a-7391cd8844a8</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;OK thanks, but what do I set it to? How do I calculate the&amp;nbsp;required&amp;nbsp;size?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length extension causes NRF_ERROR_NO_MEM on services init</title><link>https://devzone.nordicsemi.com/thread/122192?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 18:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f31146-1d3d-43d9-afcf-988507a83363</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Eliot,&lt;/p&gt;
&lt;p&gt;The maximum MTU size will typically&amp;nbsp;&amp;nbsp; define the max. attribute data length for a BLE characteristic. Thus, a longer MTU may actually increase the size of the ATT table that is stored in SD memory.&amp;nbsp; You can increase the ATT table size by changing&amp;nbsp; the NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE define in sdk_config.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>