<?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>NRF52840 high throughput with custom service error changing mtu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31992/nrf52840-high-throughput-with-custom-service-error-changing-mtu</link><description>Hi, 
 I&amp;#39;m using the NRF52840 Preview DK and want to create my own BT stack with high throughput between NRF52 and other BT devices. 
 As base I&amp;#39;m using the ble_app_template of nordic examples, created a BT Profile with help of Bluetooth Developer Studio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Mar 2018 12:46:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31992/nrf52840-high-throughput-with-custom-service-error-changing-mtu" /><item><title>RE: NRF52840 high throughput with custom service error changing mtu</title><link>https://devzone.nordicsemi.com/thread/125162?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 12:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7337b5d3-1ab2-4928-9ead-333938f99a7c</guid><dc:creator>superdan1</dc:creator><description>&lt;p&gt;After spotted&amp;nbsp;a thread about&amp;nbsp;NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE in DevZone (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30852/data-length-extension-causes-nrf_error_no_mem-on-services-init"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30852/data-length-extension-causes-nrf_error_no_mem-on-services-init&lt;/a&gt;) &lt;br /&gt;I found a solution for my problem.&lt;/p&gt;
&lt;p&gt;Like I&amp;nbsp;suspect it&amp;#39;s a memory problem.&lt;/p&gt;
&lt;p&gt;I increased the&amp;nbsp;NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE (randomly, no calculation) of 1408 to 8KB (8192) and then the application runs with MTU size of 247 without any errors.&lt;/p&gt;
&lt;p&gt;Of course I increased the ram_start value and adjusted the ram_size value of the application too. My values are now:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Physical ram size minus ram_start size = ram_size.&lt;/p&gt;
&lt;p&gt;The ram_start size is shown while debbuging in&amp;nbsp;ble_stack_init() method in line&amp;nbsp;err_code = nrf_sdh_ble_enable(&amp;amp;ram_start);&amp;nbsp;&lt;br /&gt;Just read the &amp;amp;ram_start variable.&lt;/p&gt;
&lt;p&gt;RAM_START=0x20004800&lt;br /&gt;RAM_SIZE=0x3b800&lt;/p&gt;
&lt;p&gt;Apparently&amp;nbsp;there&amp;#39;s no fix way to calculate the&amp;nbsp;NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE, so just try out.&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 high throughput with custom service error changing mtu</title><link>https://devzone.nordicsemi.com/thread/124511?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 08:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea0d2a11-cd47-40de-acfc-1b08a962b1ce</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; where is the go private button&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 high throughput with custom service error changing mtu</title><link>https://devzone.nordicsemi.com/thread/124131?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 10:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f61fbb41-a1a5-4dbe-b29f-300ea08b4ea8</guid><dc:creator>superdan1</dc:creator><description>&lt;p&gt;Hi Ketil,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to set this case to private and upload my files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 high throughput with custom service error changing mtu</title><link>https://devzone.nordicsemi.com/thread/124098?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 09:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a24a0ce-5e9a-4718-ad67-286c7d207b13</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is strange behavior.&amp;nbsp;Could you please zip your&amp;nbsp;project files and attach them to this case so we can debug? If your code is sensitive we recommend you&amp;nbsp;click on the GO PRIVATE button before uploading.&lt;/p&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>