<?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>DFU process over mesh fail with &amp;quot;Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet.&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99848/dfu-process-over-mesh-fail-with-failed-to-upgrade-target-error-is-device-returned-status-code-error_invalid_data-135-on-a-dfu-data-packet</link><description>Hello all, 
 I want to update the firmware in a mesh network containing a number of nrf52932 devices using serial DFU. I proceed the instruction in &amp;quot;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 May 2023 11:43:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99848/dfu-process-over-mesh-fail-with-failed-to-upgrade-target-error-is-device-returned-status-code-error_invalid_data-135-on-a-dfu-data-packet" /><item><title>RE: DFU process over mesh fail with "Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet."</title><link>https://devzone.nordicsemi.com/thread/427207?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 11:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5095f3a-164e-4216-86f4-b07ac03e7b06</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Javad,&lt;/p&gt;
&lt;p&gt;Glad to hear that you got it working! Let me know if you run into any other hurdles regarding DFU in Mesh.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU process over mesh fail with "Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet."</title><link>https://devzone.nordicsemi.com/thread/426989?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 14:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1990c4fe-0cb0-408d-b8ac-3af0ef92a4cb</guid><dc:creator>Javad</dc:creator><description>&lt;p&gt;Dear Edvin,&lt;/p&gt;
&lt;p&gt;You are right. I carried out the DFU process based on your advise and it was successful.&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Javad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU process over mesh fail with "Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet."</title><link>https://devzone.nordicsemi.com/thread/426790?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 08:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555ae804-d308-4d3e-a87c-51bde92b9b8a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is correct that the DFU example will use 58.3% of the flash. However, if you expand the memory usage tab in the top right in SES, you will see:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1684830367319v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;.reserved_flash&amp;quot; section, which covers 0x00000000 -&amp;gt; 0x00025FFF is the softdevice. So when you do a DFU, if your image doesn&amp;#39;t contain the softdevice itself, but only the application, then it will only contain 0x00026000 -&amp;gt; 0x00046FFF.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This being said, what is the actual application usage in your original application, that you tested that failed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU process over mesh fail with "Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet."</title><link>https://devzone.nordicsemi.com/thread/426640?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 14:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa04abe-4692-4128-8b76-17ef058bf6e0</guid><dc:creator>Javad</dc:creator><description>&lt;p&gt;Thank you for your reply Edvin,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already checked the DFUexample as dummy application. However, in the version that&amp;nbsp;I use i.e. &amp;quot;version 5.0.0&amp;quot; the standard DFU example use 58% of flash memory in nrf52832 device. Then, we have memory problem again. The only thing that may be useful&amp;nbsp;is making a dummy application. For this purpose, DFU service shouldbe added to a basic application and&amp;nbsp;I&amp;#39;m searching for that now. Do you know a resource to guide me how to add DFU service to an application?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Javad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU process over mesh fail with "Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet."</title><link>https://devzone.nordicsemi.com/thread/426593?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 13:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a1221ff-cc3f-41b1-b06d-377c573ab50f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does it always stop at the same point during the DFU, or does it vary?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If, in fact, both applications use more than 60% of the flash, is that including or without the SoftDevice and Bootloader?&lt;/p&gt;
&lt;p&gt;If it is without, then it simply will not be able to fit both the new and the old application at the same time, and the DFU is not possible.&lt;/p&gt;
&lt;p&gt;One workaround for this is to use a &amp;quot;dummy&amp;quot; application in between your original and target application. By dummy application, I mean a smaller application that can still perform a DFU, but doesn&amp;#39;t do much else.&lt;/p&gt;
&lt;p&gt;You can try to create a DFU image of the SDK_for_Mesh\examples\dfu\dfu_nrf52832_...&lt;/p&gt;
&lt;p&gt;and perform the DFU to this application first (which is hopefully smaller than the one you are currently looking at). When it is done, you can update to the target image.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU process over mesh fail with "Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet."</title><link>https://devzone.nordicsemi.com/thread/426283?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 11:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90069298-360a-4ccc-8112-525a40310d3e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;I am sorry, but we are short staffed this week due to Public Holidays in Norway. We will be back on Monday 22nd and hope to be able to answer all incoming requests within a couple of days, depending on the backlog. I am sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>