<?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>Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5021/is-there-a-packet-size-limitation-for-the-bootloader</link><description>Currently I can upload new application firmware smoothly (I use the dual bank setup). However, I have to use packets of size 20, so this takes a long time. 
 Is there actually such a packet limitation? If I use packets of, for example, size 40, or anything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jan 2015 14:25:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5021/is-there-a-packet-size-limitation-for-the-bootloader" /><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17712?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 14:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0984bfdf-753c-43fe-b507-2f0046b5f880</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;Okay, although I prefer it to be on a public place, so others can see it as well. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17711?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 14:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f712950f-42a0-4c14-a171-aaf52f29db2d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m just trying to say that long writes will not improve the throughput. We want to help you figuring out what is causing the fault, therefore I asked you to separate case/question for it. Then you can include the necessary details of what changes you have done to the bootloader and what your setup is on the central side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17710?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 13:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2f0b2eb-5792-4b23-9021-d02fafd8a8d5</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;There is &amp;quot;something&amp;quot; in the configuration of the DFU uploader in the Nordic app that makes the Nordic bootloader fail. I see that the Nordic bootloader segfaults if I use long writes in a python script. I think it is size-related. You say it is not. It is not my code. Please, see this just as bug report. I&amp;#39;m not here to start a discussion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17709?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 12:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30fc81c5-69e8-421a-92d1-54901fd17184</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why do you ask about size limitations if you don&amp;#39;t care about them? I think this issue us better suited for the &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;&lt;strong&gt;MyPage support portal&lt;/strong&gt;&lt;/a&gt;, please consider adding a case there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17708?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 12:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db04c7ab-1ee5-4b5b-852a-a72b63c5fba3</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;The DFU upload functionality embedded in the Android smartphone app fails as well. I don&amp;#39;t care about size limitations, but I do care about my program segfaulting due to configuration options (I assumed them to be size-related) on the smartphone / laptop side.&lt;/p&gt;
&lt;p&gt;Note that this is just the default bootloader with only a few adaptations: &lt;a href="https://github.com/mrquincle/nrf51-dfu-bootloader-for-gcc-compiler"&gt;github.com/.../nrf51-dfu-bootloader-for-gcc-compiler&lt;/a&gt;, fork from &lt;a href="https://github.com/NordicSemiconductor/nrf51-dfu-bootloader-for-gcc-compiler"&gt;github.com/.../nrf51-dfu-bootloader-for-gcc-compiler&lt;/a&gt;. It is not that I changed a lot of stuff. So, perhaps it&amp;#39;s nice of someone from Nordic would take a second look to check if everything is still working okay. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17707?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 12:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ffa31e-5022-4711-ab09-9b374e6909a0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;With the current SoftDevice the payload is limited to 20 bytes.&lt;/p&gt;
&lt;p&gt;Long writes will not change that, please see &lt;a href="https://devzone.nordicsemi.com/question/16581/long-write-samples/"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The time it takes to do DFU is affected by other factors than the payload size, please see &lt;a href="https://devzone.nordicsemi.com/question/3440/how-do-i-calculate-throughput-for-a-ble-link/"&gt;this&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;One thing that should quicken the procedure is to increase the number of packets between each packet receipt notification. From the Master Control Panel DFU script:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# NOTE:  If packet receipt notification is enabled, a packet receipt
#        notification will be received for each &amp;#39;num_of_packets_between_notif&amp;#39;
#        number of packets.
#
# Configuration tip: Increase this to get lesser notifications from the DFU
# Target about packet receipts. Make it 0 to disable the packet receipt
# notification
num_of_packets_between_notif = 10
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This can also be changed in the DFU Options in the nRF Master Control Panel for Android.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17706?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 18:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f671456-44f5-4753-9ce9-356c26176aed</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;I would be surprised if that would be actually the reason. Sending the individual packets is actually fine. There is only a problem at the very end of receiving the entire payload. I will check anything w.r.t. long writes within the bootloader software though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a packet size limitation for the bootloader?</title><link>https://devzone.nordicsemi.com/thread/17705?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 14:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f94109f5-0b5d-4413-93fb-a2cea3fd7574</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Writing to a standard characteristic is limited to 20 bytes. The MTU of the packet is 23 bytes and there are 3 bytes of overhead imposed by the protocol. BLE does provide for writing long characteristics and I believe the later versions of the Nordic stack supports them. Here is a rather old question on the topic that may be useful:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/155/writing-more-than-20-bytes-at-a-time-to-a-characteristic/"&gt;Old question&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So you may want to look into adding the use of long writes to your DFU&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>