<?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 over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75816/dfu-over-usb-fails-at-75-with-application-soft-device-bootloader</link><description>Hi, 
 
 We&amp;#39;ve created a FW image targeting a PCA10056 which consists of our application FW, the example secure DFU bootloader over USB, and the softdevice. Everything works fine (we can interact with the application and receive expected data). Although</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 07:26:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75816/dfu-over-usb-fails-at-75-with-application-soft-device-bootloader" /><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/313821?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 07:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:439b6f54-a696-4b0e-ab69-7530a00d10b3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried to do any debugging of the bootloader or application after DFU? I think a good first step is to confirm if the application is started at all, and also if program execution gets stuck somewhere (e.g. in hardfault handler).&lt;/p&gt;
&lt;p&gt;If you want, you can use &amp;quot;nrfjprog --readregs&amp;quot; to read the CPU register content when the device is unresponsive. This may provide some clues.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/313740?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 17:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb760b77-b33e-4378-85b6-fdca21d7db86</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;While the DFU of only the BLE bootloader succeeds, the board is no longer responsive after the update. When I flash just the BLE bootloader over JTAG, it works fine, so I think my BLE bootloader is fine. I tried creating a zip package with the BLE bootloader and soft device and a package with just the bootloader and both exhibit the same behavior.&lt;/p&gt;
&lt;p&gt;Can you advise?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312888?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3017e34-3989-4a87-980a-f36f44a9b52c</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;I see. I&amp;#39;ll give that a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312877?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69de16f8-eed3-44b3-87f8-1961684ce072</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;OK, I think I understand the problem now. You are succesfully able to update the Softdevice and the bootloader. The problem is that DFU of the new application has to be done through the new bootloader that no longer supports DFU over USB, but only BLE.&lt;/p&gt;
&lt;p&gt;So, after the Softdevice and bootloader is updated, could you complete the application update over BLE?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312875?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d1eff83-e483-40b5-896c-0c4019424d36</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;Initially, I&amp;#39;m flashing the USB bootloader + application + SD using JTAG by creating a combined hex file. I&amp;#39;ve tested the application and everything looks OK. Then, I need to only update the application and bootloader (the new bootloader only supports updating via BLE) via DFU, but I need to package the SD since I can&amp;#39;t only update the application and bootloader via DFU.&lt;/p&gt;
&lt;p&gt;Thus, I create a package with the new bootloader, same SD, and new application via nrfutil. I press button 4 down on the DK and apply power to jump to the USB bootloader. When I use nrfutil to send the DFU package to the bootloader, it dies at 75%. On power cycle while holding down button 4 I expect that the board jumps to the bootloader (I confirm this by seeing a COM port show up in Linux/Windows), but it doesn&amp;#39;t look like the bootloader launches. I then reflash the USB bootloader + application + SD using JTAG via the originally created combined hex file.&lt;/p&gt;
&lt;p&gt;Hopefully that makes sense.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312872?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9384fb9-f4cc-4a01-9189-67d123c2045b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;But you had 2 versions of the bootloader, right? Or does the sd+bootoloader+app DFU package contain the same bootloader as the one you have flashed on the device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312871?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83bde826-f430-4a05-b134-d01c9088cdd5</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;Sorry hit &amp;quot;Reply&amp;quot; to soon. I&amp;#39;m reflashing the USB bootloader + application + soft device.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312870?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ce5042d-6a3d-4023-803e-e6a8a437475c</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;When I reflash the board again, I&amp;#39;m flashing the USB bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312869?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 11:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff454e0-2054-4fa1-b342-801527064ac7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That&amp;#39;s interesting. So when you reflash the board again, are you flashing the new or the old bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312868?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 11:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaabfed5-ddfa-4fa2-8c31-719cb1d3f38c</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After the initial update fails at 75%, I can&amp;#39;t enter the bootloader by holding down button 4. I need to reflash the USB bootloader + application + Soft Device and then jump to the bootloader. After that I can successfully program the application only.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mohammed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312863?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 11:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c29c201-867e-4794-99f1-4b4ff86883cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Mohammed,&lt;/p&gt;
&lt;p&gt;OK, thanks for confirming that the SDK and nrfutil version is up to date. Could you please try to make an application-only update package and try to upload it after the first update has failed at 75%&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312854?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 11:34:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929616d4-1c9a-429b-a58a-e6227c98de15</guid><dc:creator>mablabs</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for getting back. I&amp;#39;m using nrfutil version 6.1.0 and SDK version 17.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mohammed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB fails at 75% with application + Soft Device + bootloader</title><link>https://devzone.nordicsemi.com/thread/312839?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 11:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76bcefeb-8371-4527-9fb6-312dd479994b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As you may know, a full app+sd+bl update is performed in two stages, first one to update the merged &lt;span&gt;&lt;a title="SoftDevice and bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_banks.html?cp=8_1_3_5_1_2_0_0#lib_bootloader_dfu_dual_banks_sd"&gt;SoftDevice and bootloader&lt;/a&gt; image&lt;/span&gt;, then the last one to update the &lt;span&gt;&lt;a title="Application" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_banks.html?cp=8_1_3_5_1_2_0_1#lib_bootloader_dfu_dual_banks_app"&gt;Application&lt;/a&gt; &lt;/span&gt;image.&lt;/p&gt;
&lt;p&gt;I guess maybe the 75 % is for the first part to update Softdevice+Bootloader, and that the DFU controller for some reason fails to re-connect and complete the application update. But I&amp;#39;m not sure why. Which SDK and nrfutil version are you using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>