<?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>OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8945/ota-dfu-times-out-and-is-unreliable</link><description>I don&amp;#39;t have a question but am rather posting the solution in case it helps someone else out who had the same problem as me. 
 With SDK v9/SoftDevice S110 v8, our application is too big to use the dual bank bootloader, so we&amp;#39;re using the single bank</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 May 2016 01:45:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8945/ota-dfu-times-out-and-is-unreliable" /><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32932?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 01:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98440e2f-4c69-4c41-9d7c-41054335ecb6</guid><dc:creator>cl</dc:creator><description>&lt;p&gt;Hi Vidar. It&amp;#39;s working nicely after I changed the ic to QFAAB0. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32931?ContentTypeID=1</link><pubDate>Fri, 27 May 2016 12:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:683dfcf2-0f93-4f8a-8fa6-bc054be3eb59</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I was unable to reproduce this with iphone 5s, toolbox 3.0.1, ios 9.3.2. However, I just noticed you are working with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/compatibility_matrix/ic_revision_overview.html?cp=2_1_0"&gt;&lt;strong&gt;eng. B&lt;/strong&gt;&lt;/a&gt; and think the problem you have is likely related to errata # 73, please refer to this &lt;a href="https://devzone.nordicsemi.com/question/69746/nrf52-silicon-and-softdevice-compatibility/"&gt;&lt;strong&gt;thread&lt;/strong&gt;&lt;/a&gt; for more details on compatibility.&lt;/p&gt;
&lt;p&gt;Note that there are not example .zip files for SDK 11.0.0 in the toolbox app yet, only for the alpha version, and those will fail the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_example_init.html?cp=5_0_0_4_3_1_1_3"&gt;&lt;strong&gt;pre-validate check&lt;/strong&gt;&lt;/a&gt;. Instead you should use those found here: \nRF5_SDK_11.0.0\examples\dfu\ble_dfu_send_hex\test_images_update_nrf52&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32930?ContentTypeID=1</link><pubDate>Fri, 27 May 2016 01:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f447b83-2294-47f6-bd9d-37290e9f4d9a</guid><dc:creator>cl</dc:creator><description>&lt;p&gt;I forgot to mention the error message. It was &amp;quot;The connection has timed out unexpectedly. (code : 6)&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32929?ContentTypeID=1</link><pubDate>Thu, 26 May 2016 10:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd341865-a2c6-439a-b283-ea884189f755</guid><dc:creator>cl</dc:creator><description>&lt;p&gt;It&amp;#39;s 12. I didn&amp;#39;t change the value of it. Do I have try with different values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32928?ContentTypeID=1</link><pubDate>Thu, 26 May 2016 10:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3561815-8b54-429f-892e-0f37039cb349</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What is the packet receipt notification set to in ios settings -&amp;gt; nrf toolbox? The default is 12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32927?ContentTypeID=1</link><pubDate>Thu, 26 May 2016 09:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a6466fa-0a04-4c3d-a2cf-c797890deccf</guid><dc:creator>cl</dc:creator><description>&lt;p&gt;I have a similar issue with nrf52 dk board(pca10040. nRF52832-QFAABA).
With original dual bank ble bootloader in the SDK 11.0, I tried to upload using nRF Toolbox(ver 3.0.1).
I used many .zip files to test but .zip file with only application without softdevice &amp;amp; bootloader had succeed.
Every .zip files including softdevice &amp;amp; bootloader failed. (Even the .zip file in the nRF Toolbox for default.)
I used iPhone5S(iOS9.3.2) and I tried using original bootloader and buffer size customized one like above.
What points should I check for this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32924?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2016 07:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc08db3f-9963-49af-b925-b7b5b25967ed</guid><dc:creator>AndreaO</dc:creator><description>&lt;p&gt;Thanks a lot Vidar, I just found a nasty makefile include path error (syntax error on a path, obviously no error message from make...).
Anyway, errors lead to better knowledge :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32926?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 14:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3bf2a7a-90b6-427a-a405-302646640a8e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;We have still not been able to reproduce the instability reported in this thread. Please let me know if anyone are still experiencing this with the default buffer size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32923?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 13:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10818ad2-b258-4543-a680-d76ce66b8e08</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;@AndreO, the buffer sizes appear to be from the serial version of the bootlaoder. The default values when you open the BLE bootloader should be the following.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_BUF_SIZE       32u   /**&amp;lt; RX buffer size in bytes. */

#define RX_BUF_QUEUE_SIZE 8u    /**&amp;lt; RX buffer element size. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please ensure that you have added the correct header in your project. The include path should point to \config\dfu_xxx_bank_&lt;strong&gt;ble&lt;/strong&gt;&lt;em&gt;sxxx_pca100xx and not \config\dfu_xxx_bank&lt;/em&gt;&lt;strong&gt;serial&lt;/strong&gt;_sxxx_pca100xx. This can happen if you change the target device in the projects options as that resets the project specific settings.&lt;/p&gt;
&lt;p&gt;600 bytes buffer is a bit overkill since the the BLE packets are just 20 bytes, but the queue size needs to be at least 8 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32922?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 13:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3373f433-de89-4390-b496-8e0e28d8aa0e</guid><dc:creator>AndreaO</dc:creator><description>&lt;p&gt;Thanks a lot for this post!
We just experienced the same issue with board PCA10040 and nRF Toolbox on iOS. We tried our custom C# PC software. In SDK11.0.0 for nRF52 the default values are way off:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_BUF_SIZE       600u   /**&amp;lt; RX buffer size in bytes. */
#define RX_BUF_QUEUE_SIZE 4u    /**&amp;lt; RX buffer element size. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We hope the hci_mem_pool is used only for BLE buffering, and we change to 8 buffers of 20B.
This solved the bootloader problem.
We didn&amp;#39;t change yet the pstorage queue size.&lt;/p&gt;
&lt;p&gt;Actually, we noticed the board PCA10040 functioned when just arrived... could be the slightly deteriorated flash, with longer write times?&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32925?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 12:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d55d46-dbc6-47e1-9919-24aa5f9bd31c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for reporting this, will raise this issue internally. Although, I was not able to reproduce it at my end even after several attempts. The application I uploaded was 124K. Did you do any other modifcations to the bootlaoder that could result in some additional overhead? Have you tried uploading the same using nRFtoolbox on an Android/iOS device? In that case, do you experience the same issue?&lt;/p&gt;
&lt;p&gt;I think the reason for this problem is that the flash operations is unable to keep up with the incoming data, hence fill up the buffers and queue. What happens when you increase the number packets between notifications is that you increase the data throughput as one connection interval is &amp;quot;wasted&amp;quot; on sending the notification packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU times out and is unreliable</title><link>https://devzone.nordicsemi.com/thread/32921?ContentTypeID=1</link><pubDate>Sat, 14 Nov 2015 17:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae0af9c4-18a5-45c9-a570-e17792cb966c</guid><dc:creator>GlennEngel</dc:creator><description>&lt;p&gt;This totally solved my problem!  I was  unable to update from MCP without errors until I made these changes to my bootloader source.  Thanks for taking the time to document and post this.  Hopefully Nordic will make the changes you mention.&lt;/p&gt;
&lt;p&gt;I found I needed to use &lt;strong&gt;RX_BUF_SIZE of 64u&lt;/strong&gt; to reliably update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>