<?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>MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29779/mtu-size-change-then-infinite-reboot</link><description>I&amp;#39;m using nRF52DK and SDK12.2.0.
Trying to change MTU size. 
 When I modified app_nrf_uart example as below 
 #define NRF_BLE_MAX_MTU_SIZE 103 
 
 Then infinite reboot at below 
 #if (NRF_SD_BLE_API_VERSION == 3)
 ble_enable_params.gatt_enable_params</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jan 2018 14:29:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29779/mtu-size-change-then-infinite-reboot" /><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118096?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 14:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89fdc5f3-c7de-42a6-a636-3e9b893b2b64</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;SoftDevice S132 v3, supported by SDK 12, is the first to support configurable ATT MTU. There is is called NRF_BLE_GATT_MAX_MTU_SIZE. In SDK 14 it is called NRF_SDH_BLE_GATT_MAX_MTU_SIZE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118097?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 14:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87544125-ef81-4df8-8eaa-a8bdb5ce8504</guid><dc:creator>Alaa</dc:creator><description>&lt;p&gt;Can you tell me what&amp;#39;s the minimum version that supports configurable ATT MTU? I can&amp;#39;t find the macro also in SDK 14. Where should it be located at?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118090?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 12:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b548ff7-dc45-4975-a3d4-ab3f9b51a808</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;No, not really.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118095?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 11:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cde6db86-a806-4014-9a1d-65c45af5185d</guid><dc:creator>Alaa</dc:creator><description>&lt;p&gt;Thanks. Is there a guide how to migrate from 11 to 14? I found guides migrating from 12 to 13 and from 13 to 14&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118094?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 11:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf90a5a-c98e-48a5-b7a9-99adbed9ddcc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;SDK 11 uses SoftDevice S13x v2, this does not support configurable ATT MTU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118093?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 11:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2177ffed-22db-4622-b1ba-f8aa25cc6e85</guid><dc:creator>Alaa</dc:creator><description>&lt;p&gt;SDK 11, example ble_app_uart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118092?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 11:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba221e36-7d80-4e81-814f-fc5ceecd5ab0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK version are you using? Which example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118091?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 11:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b38094e-8d78-4367-8ab2-bd476f66fcd5</guid><dc:creator>Alaa</dc:creator><description>&lt;p&gt;Where is this &lt;code&gt;NRF_BLE_MAX_MTU_SIZE&lt;/code&gt;? I can only find &lt;code&gt;GATT_MTU_SIZE_DEFAULT&lt;/code&gt; and &lt;code&gt;GATT_RX_MTU&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118088?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 19:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f51ee8d-0911-4b8b-b54c-0aeabe0d9ab8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;That define is incorrect, see &lt;a href="https://devzone.nordicsemi.com/question/95745/what-is-the-max-data-throughput-with-s132-v3/"&gt;this&lt;/a&gt; on how to achieve the highest throughput. If you have more questions I really think you should add them separately. This is getting very cluttered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118087?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 17:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22a9811e-4288-4ed6-8e01-564f15ab8e36</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I realized that my serial monitor was connected to the other nrf chip that wasn&amp;#39;t flashed with new ram start address yet.&lt;/p&gt;
&lt;p&gt;I increased the RAM start address and corresponding size with r1 values from both central and peripheral sketch and it seems to be working fine.&lt;/p&gt;
&lt;p&gt;But could you tell me what the maximum MTU size is for the current SDK?
I&amp;#39;m getting contradicting information from various sources.&lt;/p&gt;
&lt;p&gt;This is my current definition.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_BLE_MAX_MTU_SIZE    103
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118086?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 17:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a654bcc-256f-4bcb-a417-be370cfb3642</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I tried changing the address to r1 value and increased the size correspondingly but CTS light is keep blinking and I believe going through an infinite loop. Please advise. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118085?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 16:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2382bf2b-e4c8-4fc7-95ba-8159ac6584ef</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I confirmed that disabled optimization setting wasn&amp;#39;t saved and changed it back to level 0.&lt;/p&gt;
&lt;p&gt;However, I am still not seeing any value when I hover over the variable.
I even put them on watch and their values return &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t had a chance to read through the assembly yet but is r1 value just the start address value?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://imgur.com/a/HE2DB"&gt;http://imgur.com/a/HE2DB&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118083?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 17:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5299b43c-31cb-4f66-b232-9850809a0f69</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great. It doesn&amp;#39;t look like you have turned off optimizations. You should have several places to put a breakpoint after sd_ble_enable() is called. Then it is simple to hold your mouse pointer on the app_ram_base value to see its value. You turn off optimizations by going into Options for Target-&amp;gt;C/C++-&amp;gt;Optimization Level 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118081?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 22:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b24b3a6-976d-4a3b-97e4-ef3d7a78217f</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I was actually able to find the app_ram_base variable.
&lt;a href="http://i.imgur.com/gNXto90.png"&gt;http://i.imgur.com/gNXto90.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m not really familiar with Keil and can&amp;#39;t figure out how to output the variable value.
What would be the easiest way to do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118082?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 19:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5c9535a-9999-4d45-992d-65d2fe3db866</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I even ran a search for sd_ble_enable() for the whole project but I was only able to find two comments that said something along the lines of &amp;quot;Calling @ref sd_ble_enable() with *p_app_ram_base set to 0 can be used during&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;development to find out how much memory a specific configuration will need.&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Looking up the function in the SDK documentation didn&amp;#39;t really help either.&lt;/p&gt;
&lt;p&gt;Would you mind giving me more information or detailed instruction?
I&amp;#39;m using nRF5_SDK 12.2.0 S132 UART central and peripheral example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118079?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 18:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e866bd7-4cbc-490c-89e3-97e6be8f91fe</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I turned off optimizations (level 0) and recompiled. However, I&amp;#39;m having some trouble finding the softdevice_enable. Could you elaborate what you mean by &amp;quot;go into&amp;quot; it?&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s a class file, I can&amp;#39;t seem to find it inside any of the project directories.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118084?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 11:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2a2cef1-b4c6-4290-9054-96162f0ea7da</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Of course. First turn off optimizations and recompile. Then go into softdevice_enable, there you see a function named sd_ble_enable(). If you put a breakpoint after this function is called you can check the value of app_ram_base to see what the RAM start address should be. The size should be 0x10000 - app_ram_base = size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118080?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 21:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3938fda-f865-4bc6-86dd-1739655d8b4b</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I&amp;#39;m just having a hard time finding the RAM start address you were talking about.
Would you mind helping me with just that?
I don&amp;#39;t think a separate thread is necessary.&lt;/p&gt;
&lt;p&gt;This is what I&amp;#39;m currently seeing from the debugger.
&lt;a href="https://goo.gl/YGrZS0"&gt;https://goo.gl/YGrZS0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118098?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 12:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5439c9ee-edb8-49b7-92a9-afb6f464c69c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I guess my answer below was the solution, since he accepted it. If that doesn&amp;#39;t solve you problem I recommend adding a new question with your setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118078?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 22:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45402e32-30d4-4ba7-8acf-e74b7950a61e</guid><dc:creator>minswho</dc:creator><description>&lt;p&gt;I&amp;#39;m having the same problem. Did you ever figure out the solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MTU size change then infinite reboot</title><link>https://devzone.nordicsemi.com/thread/118089?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 11:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db8a748b-37c2-4c73-abab-babb0f910d93</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is probably returned from sd_ble_enable(). It means that you haven&amp;#39;t provided enough RAM for the SoftDevice, because you increased the ATT MTU.&lt;/p&gt;
&lt;p&gt;Examine softdevice_enable(), app_ram_base will tell you the required RAM start address for the application. Print it, or check it with the debugger (turn off optimizations).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>