<?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>Generating Settings and Bootlaoder Files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60570/generating-settings-and-bootlaoder-files</link><description>I am a little bit confused on the steps I need to follow to program the settings and the bootloader files. According to Secure DFU over Serial example instructions ( https://infocenter.nordicsemi.com/index.jsp ) I am supposed to program the settings hex</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Apr 2020 06:11:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60570/generating-settings-and-bootlaoder-files" /><item><title>RE: Generating Settings and Bootlaoder Files</title><link>https://devzone.nordicsemi.com/thread/246666?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 06:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9d1a4c2-fd09-4e73-b8a1-712276a0b50a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;That was a typo from my side. You are correct it should be&amp;nbsp;&lt;span&gt;&amp;quot;nrfjprog --program settings.hex --sectorerase&amp;quot; and not&amp;nbsp;&amp;quot;nrfjprog --program&amp;nbsp; --sectorerase settings.hex&amp;quot;. I have edited my answer.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will report it internally.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating Settings and Bootlaoder Files</title><link>https://devzone.nordicsemi.com/thread/246652?ContentTypeID=1</link><pubDate>Sun, 26 Apr 2020 19:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b908ec04-03e5-41be-b8c1-4da6cbfd4d20</guid><dc:creator>moose</dc:creator><description>&lt;p&gt;Thank you. The order you suggested works (erase all, program the bootloader and then program the settings file). However the provided programming command did not work for me. I had to use this syntax instead &amp;quot;nrfjprog --program settings.hex --sectorerase&amp;quot;&lt;/p&gt;
&lt;p&gt;Also, it would be great to update the secure serial bootloader example instructions. Today it lists the settings programming step before the erase all/bootloader programming steps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating Settings and Bootlaoder Files</title><link>https://devzone.nordicsemi.com/thread/246434?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 09:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:051f15cd-6533-445f-bad1-454b7f0c4ee5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mustafa,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the bootloader settings contains the version numbers as well as the CRC of the application,&amp;nbsp; so you need to provide the application hex to nrfutil when generating the bootloader settings page so that the application CRC can be calculated and included in the settings hex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=8_5_6"&gt;Generating and displaying bootloader settings&lt;/a&gt;&amp;nbsp;under the nRF Util documentation for more information&lt;/p&gt;
&lt;p&gt;When you have generated the settings hex then you only need to make sure that you flash the settings hex after you have flashed the bootloader hex with the nrfjprog command you posted&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog --program&amp;nbsp;&lt;/span&gt;&lt;span&gt;settings.hex&amp;nbsp;&lt;/span&gt;&lt;span&gt;--sectorerase &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It does not matter if you flash the SoftDevice and Application before or after the bootloader and the settings hex have been flashed.&amp;nbsp;&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;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>