<?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>USB DFU help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45257/usb-dfu-help</link><description>My application will update over USB from a connected host. 
 For testing, I used two projects: 
 
 Bootloader: secure_bootloader_usb_mbr_pca10056 
 Application: led_softblink_pca10056 
 
 This is running on the nRF52840 DK, with development on Segger</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Mar 2019 17:31:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45257/usb-dfu-help" /><item><title>RE: USB DFU help</title><link>https://devzone.nordicsemi.com/thread/178779?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 17:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f0f294-1aec-4b29-8a3e-b95d2b66b423</guid><dc:creator>Ken A</dc:creator><description>&lt;p&gt;Yes this worked. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU help</title><link>https://devzone.nordicsemi.com/thread/178230?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 07:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd8d41e-36b6-4fc4-89dc-1d3162ab0d85</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again ken-a&lt;/p&gt;
&lt;p&gt;Can you try to add the following to your procedure:&lt;/p&gt;
&lt;p&gt;1. Build bootloader&lt;/p&gt;
&lt;p&gt;2. In the Application, change the Section Placement Macros, as &lt;strong&gt;step 4&lt;/strong&gt; in &lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;this guide&lt;/a&gt; demonstrates, to the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_PH_START=0x0
FLASH_PH_SIZE=0x100000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x40000
FLASH_START=0x1000
FLASH_SIZE=0xFF000
RAM_START=0x20000008
RAM_SIZE=0x3FFF8&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Save and build the Application.&lt;/p&gt;
&lt;p&gt;3. Generate settings file.&lt;/p&gt;
&lt;p&gt;4. Merge settings file&lt;/p&gt;
&lt;p&gt;5. Program &lt;strong&gt;bl_and_settings.hex&lt;/strong&gt; and program the &lt;strong&gt;MBR&lt;/strong&gt;, you find the &lt;strong&gt;MBR &lt;/strong&gt;in the folder: &lt;strong&gt;components\softdevice\mbr\nrf52840\hex&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;6.Generate the DFU packet&lt;/p&gt;
&lt;p&gt;7. Do the DFU.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b97a595102ad40088a9573e23be0989d/pastedimage1553585424639v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I think the issue you had was that the Application was placed in an area where the MBR or Bootloader had occupied memory:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b97a595102ad40088a9573e23be0989d/pastedimage1553586163997v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The Application started on my board after the DFU.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU help</title><link>https://devzone.nordicsemi.com/thread/178152?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 14:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c45338e-995c-46f4-9b6c-370260665a19</guid><dc:creator>Ken A</dc:creator><description>&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Step by step, on NRF52840 DK board&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Build bootloader&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Verify that it runs when downloaded from Segger Embedded Studio.&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Create settings file&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;strong&gt;nrfutil settings generate --family NRF52840 --application led_softblink_pca10056.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex&lt;/strong&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Merge files&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;strong&gt;mergehex -m secure_bootloader_usb_mbr_pca10056.hex settings.hex -o bl_and_settings.hex&lt;/strong&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Program&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;strong&gt;nrfjprog -F NRF52 --program bl_and_settings.hex --chiperase&lt;/strong&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;The board comes up with the LED status patterns, showing that the bootloader is running&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Create a DFU package&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;strong&gt;nrfutil pkg generate --hw-version 0 --sd-req 0x00 --application-version 1 --key-file private.key --application led_softblink_pca10056.hex dfu_test.zip&lt;/strong&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Download the update&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;strong&gt;nrfutil dfu usb-serial -pkg dfu_test.zip -p COM68&lt;/strong&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Device programmed&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Nothing happens&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;All steps were executed without errors.&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;Is the example DFU bootloader incomplete?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU help</title><link>https://devzone.nordicsemi.com/thread/177993?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 06:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3154728-5111-4990-b0e8-a2245dbf07f8</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You should generate a &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrfutil%2Fnrfutil_settings_generate_display.html"&gt;bootloader settings page&lt;/a&gt; also, and merge that with your bootloader.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>