<?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 the maximum MTU size supported on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76621/what-is-the-maximum-mtu-size-supported-on-nrf52840</link><description>I am bothered by the fact I have to ask this question at all. It should be easily found in the documentation but I cannot find it for the life of me. 
 I am trying to increase the size of the MTU from the default 23. Somewhere there should be a table</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jun 2021 13:45:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76621/what-is-the-maximum-mtu-size-supported-on-nrf52840" /><item><title>RE: What is the maximum MTU size supported on nRF52840</title><link>https://devzone.nordicsemi.com/thread/317030?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 13:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59943c02-8f04-46aa-b281-7f51d887347e</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I sort of figured this out by trial and error. However, I will say trying t find the error codes is very difficult because of the way they are defined. There needs to be a place where they are all listed by value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the maximum MTU size supported on nRF52840</title><link>https://devzone.nordicsemi.com/thread/316989?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 12:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e49b8719-677a-45fc-89c9-f53fdc80cab8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;There is no limit per the spec on how high the ATT MTU value can be, but the maximum length of an attribute value is per spec 512 octets. The Softdevice supports this value.&lt;/p&gt;
&lt;p&gt;When you configure the SoftDevice. i.e. you configure how many connections it should support, connections roles, GAP event length, maximum ATT MTU, number of custom UUIDS, size of GATTS attribute table, etc. this is passed to the SoftDevice when you enable it, and it will return the RAM requirements for the configuration. If you have not configured enough RAM, you will not be able to enable the SoftDevice (sd_ble_enable() will return NRF_ERROR_NO_MEM.)&lt;/p&gt;
[quote user="brianreinhold"]It looks like a new MTU requires a new memory size which has to be hard-configured pre-build. There does not appear to be a way to do this dynamically.[/quote]
&lt;p&gt;&amp;nbsp;Correct.&lt;/p&gt;
[quote user=""]&amp;lt;debug&amp;gt; app: Could not set the Bluetooth Address. Error code 12289[/quote]
&lt;p&gt;&amp;nbsp;&lt;span&gt;12289 in hex is 0x3001. ie. NRF_ERROR_STK_BASE_NUM (0x3000) +1 , this is the same as BLE_ERROR_NOT_ENABLED&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I believe&amp;nbsp;happened&amp;nbsp;here is that the sd_ble_enable() returned&amp;nbsp;NRF_ERROR_NO_MEM, i.e. the SoftDevice was not enabled, then you later called&amp;nbsp;sd_ble_gap_addr_set(), and it returned&amp;nbsp;BLE_ERROR_NOT_ENABLED because&amp;nbsp;sd_ble_enable() had failed/the SoftDevice&amp;nbsp;was not enabled.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the maximum MTU size supported on nRF52840</title><link>https://devzone.nordicsemi.com/thread/316489?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 13:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3579eeca-61e0-4e09-aac6-eff9f1fb681a</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;It looks like a new MTU requires a new memory size which has to be hard-configured pre-build. There does not appear to be a way to do this dynamically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>