<?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>Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19502/flashing-sd-app-bl-sdk12-2</link><description>I am trying to flash all three images together. I have the firmware updating working, but if you flash them together, the bootloader doesn&amp;#39;t know that the application is programmed. I found this post POST 
 There are differences however. I found the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Apr 2019 15:14:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19502/flashing-sd-app-bl-sdk12-2" /><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/181372?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 15:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3607d122-2e32-4f45-8b25-5203e2926b2b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/maxrpeng"&gt;MaxRPEng&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I recommend creating a new Question for your issue and then link to this question in your new question. Also please upload the bootloader hex and the settings hex as well as state which commands you used to generate the settings file as well as which nrfutil version you used.&amp;nbsp;&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: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/181271?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 09:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dd6b836-073a-4f7d-8be9-a5bde1768f1e</guid><dc:creator>MaxRPEng</dc:creator><description>&lt;p&gt;Hello, i know it is a bit old but i have the same problem. It should not be that diffucult but it is.&lt;/p&gt;
&lt;p&gt;I use nRF51822, SDK12, Softdevice 130 2.0.1.&lt;/p&gt;
&lt;p&gt;When i try to flash all three parts (softdevice, application and bootloader) it alsways starts with the bootloader.&lt;br /&gt;I was not able to merge the settings.hex with my bootloader. i get the error &amp;quot;there are conflicts&amp;quot;&lt;/p&gt;
&lt;p&gt;Is there any help for my problem?&lt;/p&gt;
&lt;p&gt;thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75761?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 15:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cad3b0d-d7b0-493d-ba8b-a657e56e5982</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Brett,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;This is documented on the pc-nrfutil GitHub page, &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;here&lt;/a&gt; is the link, as well as on &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_intro.html?resultof=%22%6e%72%66%75%74%69%6c%22%20"&gt;this&lt;/a&gt; page on our Infocenter.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I think you can, but its not recommended, see 3.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No, you do not need to modify the settings since you&amp;#39;re merging in the settings file. Yes, you should remove BANK_VALID_APP.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75760?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 15:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e5760fd-6f90-48d6-81ac-d8fcc642450b</guid><dc:creator>brett_anderson</dc:creator><description>&lt;p&gt;Sorry,
3. Do I still need to edit bootloader_settings.c if I am merging in a settings hex file? Should I remove the &amp;#39;BANK_VALID_APP&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75759?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 15:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e70065-9d60-4b1a-9b58-10ba31167e89</guid><dc:creator>brett_anderson</dc:creator><description>&lt;p&gt;Thanks Bjorn. A couple quick follow up questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Is this documented somewhere and I missed it?&lt;/li&gt;
&lt;li&gt;the bootloader_settings.c file reserves space for the settings. Can I write in the settings here?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75764?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 23:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6159508-6dd6-4776-9500-c577b8d81651</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The IDAPnRFProg program will flash Softdevice + App + DFU and set all necessary data to boot into the app.  No nrfutil require or mergehex require.  nrfutil is still needed when you do OTA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75763?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 23:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d7ab7f-335a-454c-be51-4af7715d37b5</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;You get the correct bootloader settings with that?.... you still have to use nrfutil ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75762?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 19:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74c7efce-4a42-48f2-8e71-54fb0650c2f7</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Using the &lt;a href="http://embeddedsoftdev.blogspot.ca/p/idap-link.html"&gt;IDAP-Link&lt;/a&gt; Debug Jtag with IDAPnRFPRog, it will take care of the proper settings for you.  You only need to give it the 3 hex files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing SD+App+BL SDK12.2</title><link>https://devzone.nordicsemi.com/thread/75758?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 14:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7286df5-af40-455f-b5df-6c5d72f1d7d4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Brett,&lt;/p&gt;
&lt;p&gt;you are correct that the bootloader does not know that there is a valid application if you flash the bootloader, application and SoftDevice with a programmer.&lt;/p&gt;
&lt;p&gt;In order to set the correct bootloader settings you need to generate a bootloader settings hex file using nrfutil.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil settings generate --family NRF52 --application application.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settings.hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which will generate the settings.hex file and output something like this to your terminal&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Bootloader DFU Settings:
* File:                 settings.hex
* Family:               nRF52
* CRC:                  0x2B1E5436
* Settings Version:     0x00000001 (1)
* App Version:          0x00000003 (3)
* Bootloader Version:   0x00000002 (2)
* Bank Layout:          0x00000000
* Current Bank:         0x00000000
* Application Size:     0x00003AF4 (15092 bytes)
* Application CRC:      0xF7A69330
* Bank0 Bank Code:      0x00000001
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The generated settings.hex file should be merged with the bootloader hex file using the following  mergehex command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mergehex -m settings.hex secure_serial_bootloader.hex -o bootloader_w_settings.hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The merged hexfile can now be flashed to the nRF52 along with the application and the softdevice. (You can also use mergehex to create a single hex file that contains the bootloader, bootloader settings page, application and softdevice).&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></channel></rss>