<?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>I get soft reset when MTU is bigger than 65</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23220/i-get-soft-reset-when-mtu-is-bigger-than-65</link><description>Hello! 
 I am trying to increase the MTU size to get higher speeds. When I increase the MTU above 65 the application locks/software reset when doing transfer. Up to 65 it works.
I have increased RAM memory for SoftDevice a lot. No difference. I check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2017 13:22:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23220/i-get-soft-reset-when-mtu-is-bigger-than-65" /><item><title>RE: I get soft reset when MTU is bigger than 65</title><link>https://devzone.nordicsemi.com/thread/91339?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 13:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8f0334c-9ac2-4ca7-a1ca-188c1b887eaa</guid><dc:creator>Stefan</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;your debug suggestion worked. I have now found that the error comes from softdevice_handler.c line 187 and I get NRF_ERROR_DATA_SIZE (error code 12). I do not understand why.&lt;/p&gt;
&lt;p&gt;I will close this and open a new question, thanks for the help!&lt;/p&gt;
&lt;p&gt;/Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I get soft reset when MTU is bigger than 65</title><link>https://devzone.nordicsemi.com/thread/91337?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 12:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4999fad5-48ef-4a87-9beb-0c9fdd89cb02</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you handling the event &lt;code&gt;BLE_GATTC_EVT_EXCHANGE_MTU_RSP&lt;/code&gt; ? and starting the ATT_MTU exhange with &lt;code&gt;sd_ble_gattc_exchange_mtu_request()&lt;/code&gt; ? Take a look at the S132 v.3.0.0 migration document. &amp;quot;Configurable ATT_MTU&amp;quot; section contains information you need.&lt;/p&gt;
&lt;p&gt;You can also find an example on how to enable DLE and increase ATT_MTU for SDK 12 in &lt;a href="https://devzone.nordicsemi.com/question/95007/peripheral-fault-from-dle-with-s132-v30/?answer=95539#post-id-95539"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I get soft reset when MTU is bigger than 65</title><link>https://devzone.nordicsemi.com/thread/91338?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 12:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99b66921-dc5b-4667-951c-b40bbfaab60d</guid><dc:creator>Stefan</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I use SDK 12.2 (SD132).&lt;/p&gt;
&lt;p&gt;I do not test on any particular example, I do test it on our application directly. I try to speed up transfers and currently increasing the MTU seems to be the only viable way.&lt;/p&gt;
&lt;p&gt;I set MTU by:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if (NRF_SD_BLE_API_VERSION == 3)
    ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
#endif
    // Enable BLE stack.
    ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
    err_code = softdevice_enable(&amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I hope this is the way to do it in 12.*.&lt;/p&gt;
&lt;p&gt;I will check out the debugging post you refer to, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I get soft reset when MTU is bigger than 65</title><link>https://devzone.nordicsemi.com/thread/91340?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 10:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e5f7d19-feec-427b-9e9d-6e8314b2ef88</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;General Note: A reset indicates that you are running into the error handler, where the default behavior is to do a reset. You should then debug in order to find the reason for the reset. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post&lt;/a&gt; about debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I get soft reset when MTU is bigger than 65</title><link>https://devzone.nordicsemi.com/thread/91336?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 10:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d92768de-0b0e-43a9-945e-6dac3e8aa0d5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version are you using? What example in the SDK are you testing this on?&lt;/p&gt;
&lt;p&gt;In e.g. SDK 13 in the ble_app_uart example you set the ATT_MTU with the &lt;code&gt;nrf_ble_gatt_att_mtu_periph_set()&lt;/code&gt; function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void gatt_init(void)
{
    ret_code_t err_code;

    err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, gatt_evt_handler);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 64);
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>