<?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>Create boot settings for nRF51822 using SDK_11.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50874/create-boot-settings-for-nrf51822-using-sdk_11-0-0</link><description>We would like to create the boot settings page and merge it with the application and flash the merged hex file using J-Link and nrfjprog.exe in production. 
 Currently in production we program the nRF51822 with softdevice S130 and a boot-loader using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2019 01:50:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50874/create-boot-settings-for-nrf51822-using-sdk_11-0-0" /><item><title>RE: Create boot settings for nRF51822 using SDK_11.0.0</title><link>https://devzone.nordicsemi.com/thread/203707?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 01:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b518dd8c-dd80-47e7-844f-5c992098ba93</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;This is how I did it:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;rem Program the application, without boot settings&lt;br /&gt;nrfjprog --program nrf51822_xxac_s130.hex --family NRF51 --sectorerase&lt;/p&gt;
&lt;p&gt;rem Erase boot settings page&lt;br /&gt;nrfjprog --erasepage 0x03FC00&lt;/p&gt;
&lt;p&gt;rem Program the BOOT_VALID-APP field in boot settings&lt;br /&gt;nrfjprog --memwr 0x03FC00 --val 0x00000001&lt;/p&gt;
&lt;p&gt;nrfjprog --reset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Initially the nRF51822 contains only a softdevice and bootloader (programmed previously with nrfjprog). The application is flashed with the above commands using nrfjprog over J-link.&amp;nbsp; The boot-loader remains in place and can be used for subsequent application DFU over serial&lt;/p&gt;
&lt;p&gt;Thanks Vidar, your help is greatly appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create boot settings for nRF51822 using SDK_11.0.0</title><link>https://devzone.nordicsemi.com/thread/203706?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 01:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a611aeb2-add1-405d-b446-26970237572d</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;I&amp;#39;ve actually answered my own question.&amp;nbsp; No&lt;/p&gt;
&lt;p&gt;I got it working.&amp;nbsp; Thanks Vidar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create boot settings for nRF51822 using SDK_11.0.0</title><link>https://devzone.nordicsemi.com/thread/203704?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 01:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ab4c4d8-11e6-4300-a6d0-a4d8ebca49ea</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;Thanks, this makes a lot of sense.&lt;/p&gt;
&lt;p&gt;Do you still have to create a boot settings page and merge it with the application first?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create boot settings for nRF51822 using SDK_11.0.0</title><link>https://devzone.nordicsemi.com/thread/203514?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 09:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff4f7307-5004-4da0-9007-cebf8f0e8f9c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The legacy bootloader&amp;nbsp;used a simpler format for the settings page that didn&amp;#39;t require CRC, etc.&amp;nbsp; Settings page structure for reference:&amp;nbsp;&lt;a title="bootloader_settings_t" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/structbootloader__settings__t.html?cp=5_5_10_6_6_1_0_0"&gt;bootloader_settings_t&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After you have programmed everything, you can mark&amp;nbsp;the app as valid by writing BANK_VALID_APP&amp;nbsp; (0x01) to the bank0&amp;nbsp;field at address 0x3FC000&lt;/p&gt;
&lt;p&gt;With nrfjprog:&lt;/p&gt;
&lt;p&gt;&amp;gt; nrjfprog --memwr 0x3FC00 --val 1&lt;/p&gt;
&lt;p&gt;The other alternative is to initialize .bank0 to&amp;nbsp;&lt;span&gt;BANK_VALID_APP in your code to make this setting be a part of your merged hex file. But make sure to revert this change if you are later making a new bootloader image for a DFU.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create boot settings for nRF51822 using SDK_11.0.0</title><link>https://devzone.nordicsemi.com/thread/203456?ContentTypeID=1</link><pubDate>Sun, 11 Aug 2019 23:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:568ae8f5-8452-4fbb-9dd3-030a7eee4cce</guid><dc:creator>Phil</dc:creator><description>&lt;p&gt;Correction:&amp;nbsp; Boot-setting page is at 0x3F000.&amp;nbsp; Boot-loader is at 0x3C000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>