<?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>Failed to do DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42275/failed-to-do-dfu</link><description>Hi, All, 
 We developed our device with KEIL 5, SDK15.2 and SoftDevice 6.1.1. Android App was developed on Android Nordic DFU 1.8.1 library. 
 When we try to upgrage the firmware of our device, the App often halt with the error message &amp;quot;Starting DFU.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Jan 2019 11:56:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42275/failed-to-do-dfu" /><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/166453?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 11:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:181c4587-496f-47a0-84e1-7244a2f3c329</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;the Failed.txt log seems OK up to the point where there are no more logs. There is nothing there indicating that anything went wrong, other than that the next expected log message is missing (that the target device disconnected with status 8, which is timeout). Have you been able to add some logging on the nRF side so that we can see what is happening there? What caused it to not enter the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/166133?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 07:32:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8bcfb98-3927-4570-b0e5-eca75614f171</guid><dc:creator>Richard Yin</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;We saved the the DFU library internal logs into file. I attached 2 log files: &amp;#39;Failed.txt&amp;#39; is the log file for a failed DFU and &amp;#39;Succeed.txt&amp;#39; is the log file of a succeeded DFU. For the most of our failure of DFU, android app threw a error at line 137 in the ButtonlessDfuImpl.java of DFU library, as the attched the picture: ExceptionPlace.png.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you please have a analysis based on these information at first and the further information will be provided as soon as we get.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Richard&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Failed.txt"&gt;devzone.nordicsemi.com/.../Failed.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Succeed.txt"&gt;devzone.nordicsemi.com/.../Succeed.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ExceptionPlace.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165879?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 08:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15f44eae-8ea3-43ff-82b9-ea2ae8d7a552</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;What state is the nRF in during this test? Is the nRF still in the application, or did it reset into the bootloader? Can you add logging in the application and use the debug version of the bootloader with RTT logging, and upload here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165871?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 07:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba4c098-d20a-49ba-8e37-9c8f45884281</guid><dc:creator>Richard Yin</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;Thank you for your patience!&lt;/p&gt;
&lt;p&gt;We had a stranger phenonmenon of our device DFU:&lt;/p&gt;
&lt;p&gt;For a particular device we used nRF connect or our App to do DFU for many times successfully, but when failed by using nRF connect or App by accident, then we never get success to do DFU no matter using nFR connect or App. The device was always stayed the stage of &amp;#39;Start bootloader...&amp;#39;.&amp;nbsp; On this case, we debug mobile App into DFU library,&amp;nbsp; got the error information:&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;pre class="js_message_plain ng-binding"&gt;Response received (Op Code = 1, Status = 4)&lt;br /&gt;Device returned error after sending Enter Bootloader&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165712?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 11:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4f1fd01-bb1e-43eb-b380-4c42a44b60ce</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Richard,&lt;/p&gt;
&lt;p&gt;The NRF_DFU_RES_CODE_INVALID_OBJECT error is documented &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/group__sdk__nrf__dfu__req__handler#gga654d8446f2996253016f7c7713124094a09a912a599bf9e93c6ae5d4c16463d05"&gt;here&lt;/a&gt;:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Data object does not match the firmware and hardware requirements, the signature is wrong, or parsing the command failed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This typically means that the bootloader checked the init packet and found something wrong (could be wrong version of application, bootloader, SoftDevice, hardware or similar or that the signature is invalid).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165664?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 09:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa3d8c0-9937-4ae1-8731-dab5a36a2cd1</guid><dc:creator>Richard Yin</dc:creator><description>&lt;p&gt;Dear Einar，&lt;/p&gt;
&lt;p&gt;In Andriod App, when app excuted NRF_DFU_OP_OBJECT_EXECUTE(Execute selected object) command, NRF_DFU_RES_CODE_INVALID_OBJECT() returned.&lt;br /&gt;Do you have any idea of the reasons which caused this error?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165476?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 13:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:038bcd4e-dc71-4240-a53b-c8b67ae3d1b7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;There is no other documentation for the Android DFU library than what you find in the GitHub repo. To which error codes are you referring? If it is errors communicated by the nRF (DFU target), then it is documented in the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_dfu_transport"&gt;DFU protocol documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165314?ContentTypeID=1</link><pubDate>Sun, 13 Jan 2019 10:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e4be256-62fa-40d4-9de4-6fcd0e0ad578</guid><dc:creator>Richard Yin</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Appreciate you reply, thank you!&lt;/p&gt;
&lt;p&gt;After DFU APIs called, we could get many different error code from these APIs, but sometimes,&lt;br /&gt;we couldn&amp;#39;t understand the exact meaning of these error code.&lt;/p&gt;
&lt;p&gt;Do you have the ditailed definitions or explanations for these error code? It will be very helpful&lt;br /&gt;for us to find out the DFU failure reason and figure out the solution.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165108?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 10:12:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aca6d171-f142-4759-ab6e-9adc8e5b10ab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Richard,&lt;/p&gt;
&lt;p&gt;The nRF Connect code is not available, but you can refer to the &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Toolbox"&gt;Android-nRF-Toolbox&lt;/a&gt;&amp;nbsp;code, which also use the DFU library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/165057?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 06:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3cbdf7f-ddbb-4fd8-a8c9-8aff9e690ee1</guid><dc:creator>Richard Yin</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;nRF connect(Android) sometime also failed to do DFU, but it is much more reliable than our App.&lt;/p&gt;
&lt;p&gt;BTW, could you please possibly show us same part of your nRF connect source code, specially the code&lt;br /&gt;and logic of around DFU APIs in nRF connect such as:&lt;br /&gt;1) how to prepare before to do DFU,&lt;br /&gt;2) how to handle the abnormal state during DFU and&lt;br /&gt;3) how to enable CCCD in code&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to do DFU</title><link>https://devzone.nordicsemi.com/thread/164737?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 14:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c50416a2-e893-4458-a81b-f4f0fe5265c7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you only get problems when using your own application as DFU master, or do you also get the same problem using for instance nRF Connect? If so, can you upload the log? It would also be interesting if you have some logs form the nRF side that could show what is going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>