<?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>BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51275/ble-dfu-fails-after-a-certain-time</link><description>Hi, 
 When I try to update the firmware by sending 20 bytes at a time, it fails after around 1.25 minutes consistently. 
 1. Is it because nrf52 cannot hold the ble connection beyond 1.25 minutes? I can see the led status change on the nrf52 dev board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Aug 2019 23:58:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51275/ble-dfu-fails-after-a-certain-time" /><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/206732?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 23:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9732265e-7809-4205-868c-cfbf642650a2</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;Now it works! I had placed 04 command at the wrong location. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/206036?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 08:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:debee99f-6868-48e8-97e1-7cee65c5e730</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sonal,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How big is your image ? It&amp;#39;s seems in the sniffer that it was very small image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which DFU master device did you use in the original log/trace ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems that the logs (.txt files) didn&amp;#39;t capture the whole DFU process ? Do you have better trace that you have the whole process ?&lt;/p&gt;
&lt;p&gt;Do you see the 90 seconds issue when you test using the nRF Toolbox app /nrfConnect app on PC ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/205966?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 20:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc0589d6-f74f-4b4d-8a16-4b0db2ad9f3e</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see some differences in sniffer traces but I&amp;#39;m not getting what is exactly missing? Here are the sniffer traces &amp;amp; rtt logs.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/original.pcapng"&gt;devzone.nordicsemi.com/.../original.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/modified.pcapng"&gt;devzone.nordicsemi.com/.../modified.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtt_5F00_original.txt"&gt;devzone.nordicsemi.com/.../rtt_5F00_original.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtt_5F00_modified.txt"&gt;devzone.nordicsemi.com/.../rtt_5F00_modified.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/205788?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9bef8cf-d324-4933-bc8b-cc2aed73cd29</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sonal,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since you are making a DFU master, it&amp;#39;s important that you would know what happens on the bootloader. I strongly suggest you to build the bootloader in debug mode and enable logging.&amp;nbsp;&lt;br /&gt;After execute command I believe you don&amp;#39;t need to do anything else. After you receive execute response, you can just terminate the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please record a sniffer trace of a success DFU update then you can compare the behavior of the bootloader when you do DFU from your master.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/205730?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 03:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67923af7-8bb3-441b-a738-a16ce373f578</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;Ok, now I&amp;#39;m able to get the success response for execute command. My computation for creating data objects of 4096 bytes and then again dividing those into 244-byte packets was wrong.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But even after that why is the nrf52 getting stuck in the bootloader? Is there any step after that? I&amp;#39;m using secure&amp;nbsp;bootloader with buttonless app code, works fine on nrfconnect. Please guide.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/205678?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 15:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e19012df-a3bc-42fb-81da-00e546c1e0dd</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;Thanks! I&amp;#39;ll capture the sniffer trace &amp;amp; post it here in some time.&lt;/p&gt;
&lt;p&gt;I dont know but the whole DFU process should be completed within 90 sec. If I send 20 bytes at a time then it takes a long time &amp;amp; the BLE device stops giving responses to the CRC commands. But if I make it 244 bytes at a time, then responses are received at every step.&lt;/p&gt;
&lt;p&gt;Please tell me where can I find the stock bootloader example? I was using secure bootloader example. I just modified it to increase the size to 244.&lt;/p&gt;
&lt;p&gt;Master is sending the init &amp;amp; firmware files to the nrf52 &amp;amp; in the RTT logs I see nrf52 accepting that data. But for the last execute command I get a wrong response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU fails after a certain time</title><link>https://devzone.nordicsemi.com/thread/205671?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 15:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d203cd1-95c5-4a1e-8681-211fe88b3c0c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sonal,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We do have a timer to reset the bootloader if there is no activity.&amp;nbsp;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS = 120 seconds. But it won&amp;#39;t be triggered if you are&amp;nbsp;receiving image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you modify the bootloader ? Do you see the same issue with the stock bootloader example ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you capture a sniffer trace ? What do you see on the master side when you do DFU ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can see in the log you already have the MTU = 244 bytes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>