<?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>How to flash application after dfu bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53693/how-to-flash-application-after-dfu-bootloader</link><description>Hi Team Nordic, 
 
 I know this question has been answered in several threads but the responses seem quite old now. I am using nrf52840 and SDK 15.3.0 and I want to flash the application using nrfjprog command after I flash the bootloader but as soon</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2019 06:48:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53693/how-to-flash-application-after-dfu-bootloader" /><item><title>RE: How to flash application after dfu bootloader</title><link>https://devzone.nordicsemi.com/thread/217434?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 06:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee057c45-e007-4d83-a916-062fd8974d34</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You should be able to flash application to the nRF device even though the bootloader is running. What happens when you flash the application after flashing the bootloader, i.e. nrfjprog --program application.hex --verify -r? Please post the output from nrfjprog if there are any errors.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash application after dfu bootloader</title><link>https://devzone.nordicsemi.com/thread/217372?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 15:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d85905f-f34d-4b8a-bfd8-d91f55fa60c8</guid><dc:creator>arshdeep</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So to elaborate:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First of all, I have all the hex files with me i.e Softdevice, bootloader, application and settings&lt;/p&gt;
&lt;p&gt;Second, I have merged the bootloader and settings hex file to make my_bootloader.hex&lt;/p&gt;
&lt;p&gt;Now, I start programming the nrfdevice with the softdevice (nrfjprog.exe --program s140_nrf52_6.0.0_softdevice.hex --verify)&lt;/p&gt;
&lt;p&gt;Then I program the merged bootloader and settings hex (nrfjprog.exe --program my_bootloader.hex --verify -r)&lt;/p&gt;
&lt;p&gt;After this command my nrf device goes directly into DFUTarg mode. and hence I am unable to program the application.hex using the nrfjprog command .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do I prevent this ? I want to program all the hex files using nrfjprog. Will it help if I share my bootloader project ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash application after dfu bootloader</title><link>https://devzone.nordicsemi.com/thread/217367?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 14:58:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f47ee6fd-60a3-4ab5-bc3a-0a2fb76eb1d0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;So you have all the hex files, i.e.&amp;nbsp; SoftDevice, Bootloader , Application and the settings page, and you want to flash these to the nRF device using a programmer?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you elaborate on what you mean by unable to flash the application? You should be able to program the nRF device regardless if there is code running on the device or not. The debugger will halt the cpu and then flash the&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The bootloader and the bootloader settings hex should be merged together using mergehex from the nRF Commandline Tools. If you&amp;#39;re using the bootloader unaltered from SDK v15.3.0, then I would recommend merging the bootloader with the SoftDevice hex as well. Then use nrfjprog to flash the combined SD_BL_Settings.hex and then flash the application.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash application after dfu bootloader</title><link>https://devzone.nordicsemi.com/thread/217357?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 14:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14e2de86-5100-4597-b1a4-36253502da66</guid><dc:creator>arshdeep</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;May be I was not clear with my question. I do have SoftDevice, Bootloader&amp;nbsp;, Application and the settings page generated with me . But&amp;nbsp;as soon as I flash the Bootloader,&amp;nbsp;the board goes into DFUtarg mode and I am unable to flash the application.&amp;nbsp;Then&amp;nbsp;I&amp;nbsp;have to flash it using the nrfConnect app. How do I prevent the Bootloader in going&amp;nbsp;to DFUTrag mode ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash application after dfu bootloader</title><link>https://devzone.nordicsemi.com/thread/217339?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 13:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0daacc0d-17ac-4442-97f9-2a903d8770c0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Arshdeep&lt;br /&gt;&lt;br /&gt;Q1: Do I still need to change the bootloader settings page, if yes then can you please explain a little on the procedure to edit the bootloader settings page as I am only aware on how to generate one.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A1: If you want to flash the SoftDevice, Bootloader and the Application using nrfjprog and you want the nRF52840 to boot to the application, then yes, you must generate a bootloader settings page.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil#settings"&gt;https://github.com/NordicSemiconductor/pc-nrfutil#settings&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>