<?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>Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47161/combining-app-bootloader-sd-settings-page-on-v15-3</link><description>Using: Linux (Ubuntu 18.04), gcc/Eclipse, nrf52840, v15.3.0 SDK, SD 6.1.1 
 It has been a real bear of time using the SDFU in the newest version of the SDK. There were a lot of &amp;quot;breaking changes&amp;quot; and limitations. 
 1. The linker directive for SDFU changed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2019 19:21:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47161/combining-app-bootloader-sd-settings-page-on-v15-3" /><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186789?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 19:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb3a0cf-583f-4413-962a-4bdb8c60995c</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi Hung -&lt;/p&gt;
&lt;p&gt;Actually, it looks like the bootloader and merging was actually working correctly.&amp;nbsp; It turns out I needed to give a bunch more RAM to the SD by modifying my application&amp;#39;s linker directive file.&lt;/p&gt;
&lt;p&gt;Sorry for the wild goose chase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186786?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 17:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de32d6ff-ef2b-4be0-9b5f-c44ae305ba5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mike,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It could be a bug with the&amp;nbsp;&lt;span&gt;ble_app_buttonless_dfu_without_bonds_s140_with_setting_page.hex file, maybe we didn&amp;#39;t update the file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I as asking if you can test doing DFU and mergehex with an SDK example so that we can reproduce here and can rule out any issue that may related to your application.&amp;nbsp;&lt;br /&gt;I was testing here with HRS example and can create the setting and merged everything together. The merged hex file worked fine for me here. Attached are the files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-bfb7fd7a311e400388da4a1cade1c06f/S140.zip"&gt;devzone.nordicsemi.com/.../S140.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you still having problem, please try to test with HRS example and send us the files (sd, bl, setting, app, and the merged one)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186759?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 14:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5564f400-ac51-4b6b-b54a-db345deb9ad5</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Also, weirdly, I took a look at the example S140 SDFU images, and they appear to be using boot settings = 1.&amp;nbsp; This is from ble_app_buttonless_dfu_without_bonds_s140_with_setting_page.hex in the nrf52840 directory:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;:02000004000FEB
:10E00000564ADC4D01000000010000000100000044
:10E010000000000000000000ECC90000B14A0BAE97
:10E0200001000000000000000000000000000000EF
:10E0300000000000000000000000000000000000E0
:10E0400000000000000000000000000000000000D0
:0CE05000000000000000000000000000C4
:10F00000564ADC4D01000000010000000100000034
:10F010000000000000000000ECC90000B14A0BAE87
:10F0200001000000000000000000000000000000DF
:10F0300000000000000000000000000000000000D0
:10F0400000000000000000000000000000000000C0
:0CF05000000000000000000000000000B4
:00000001FF&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Whereas the one I generated using settigns = 2 looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;:02000004000FEB
:10E00000F4B7F598020000000000000000000000D6
:10E01000000000000000000008280100374FC8156C
:10E0200001000000000000000000000000000000EF
:10E0300000000000000000000000000000000000E0
:10E0400000000000000000000000000000000000D0
:10E0500000000000000000000000000000000000C0
:10E0600000000000000000000000000000000000B0
:10E0700000000000000000000000000000000000A0
:10E080000000000000000000000000000000000090
:10E090000000000000000000000000000000000080
:10E0A0000000000000000000000000000000000070
:10E0B0000000000000000000000000000000000060
:10E0C0000000000000000000000000000000000050
:10E0D0000000000000000000000000000000000040
:10E0E0000000000000000000000000000000000030
:10E0F0000000000000000000000000000000000020
:10E10000000000000000000000000000000000000F
:10E1100000000000000000000000000000000000FF
:10E1200000000000000000000000000000000000EF
:10E1300000000000000000000000000000000000DF
:10E1400000000000000000000000000000000000CF
:10E1500000000000000000000000000000000000BF
:10E1600000000000000000000000000000000000AF
:10E17000000000000000000000000000000000009F
:10E18000000000000000000000000000000000008F
:10E19000000000000000000000000000000000007F
:10E1A000000000000000000000000000000000006F
:10E1B000000000000000000000000000000000005F
:10E1C000000000000000000000000000000000004F
:10E1D000000000000000000000000000000000003F
:10E1E000000000000000000000000000000000002F
:10E1F000000000000000000000000000000000001F
:10E20000000000000000000000000000000000000E
:10E2100000000000000000000000000000000000FE
:10E2200000000000000000000000000000000000EE
:10E2300000000000000000000000000000000000DE
:10E2400000000000000000000000000000000000CE
:10E2500000000000000000000000000099ECD5FE66
:10E2600000000000000000000000000000000000AE
:10E27000000000000000000000000000000000009E
:10E28000000000000000000000000000000000008E
:10E29000000000000000000000000000000000007E
:10E2A0000001374FC815000000000000000000000A
:10E2B000000000000000000000000000000000005E
:10E2C000000000000000000000000000000000004E
:10E2D000000000000000000000000000000000003E
:10E2E000000000000000000000000000000000002E
:10E2F000000000000000000000000000000000001E
:10E30000000000000000000000000000000000000D
:10E3100000000000000000000000000000000000FD
:03E32000000000FA
:10F00000F4B7F598020000000000000000000000C6
:10F01000000000000000000008280100374FC8155C
:10F0200001000000000000000000000000000000DF
:10F0300000000000000000000000000000000000D0
:10F0400000000000000000000000000000000000C0
:10F0500000000000000000000000000000000000B0
:10F0600000000000000000000000000000000000A0
:10F070000000000000000000000000000000000090
:10F080000000000000000000000000000000000080
:10F090000000000000000000000000000000000070
:10F0A0000000000000000000000000000000000060
:10F0B0000000000000000000000000000000000050
:10F0C0000000000000000000000000000000000040
:10F0D0000000000000000000000000000000000030
:10F0E0000000000000000000000000000000000020
:10F0F0000000000000000000000000000000000010
:10F1000000000000000000000000000000000000FF
:10F1100000000000000000000000000000000000EF
:10F1200000000000000000000000000000000000DF
:10F1300000000000000000000000000000000000CF
:10F1400000000000000000000000000000000000BF
:10F1500000000000000000000000000000000000AF
:10F16000000000000000000000000000000000009F
:10F17000000000000000000000000000000000008F
:10F18000000000000000000000000000000000007F
:10F19000000000000000000000000000000000006F
:10F1A000000000000000000000000000000000005F
:10F1B000000000000000000000000000000000004F
:10F1C000000000000000000000000000000000003F
:10F1D000000000000000000000000000000000002F
:10F1E000000000000000000000000000000000001F
:10F1F000000000000000000000000000000000000F
:10F2000000000000000000000000000000000000FE
:10F2100000000000000000000000000000000000EE
:10F2200000000000000000000000000000000000DE
:10F2300000000000000000000000000000000000CE
:10F2400000000000000000000000000000000000BE
:10F2500000000000000000000000000099ECD5FE56
:10F26000000000000000000000000000000000009E
:10F27000000000000000000000000000000000008E
:10F28000000000000000000000000000000000007E
:10F29000000000000000000000000000000000006E
:10F2A0000001374FC81500000000000000000000FA
:10F2B000000000000000000000000000000000004E
:10F2C000000000000000000000000000000000003E
:10F2D000000000000000000000000000000000002E
:10F2E000000000000000000000000000000000001E
:10F2F000000000000000000000000000000000000E
:10F3000000000000000000000000000000000000FD
:10F3100000000000000000000000000000000000ED
:03F32000000000EA
:00000001FF
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looking through nrf_dfu_types.h, which defines nrf_dfu_settings_t, clearly settings = 1 wouldn&amp;#39;t work with a SDK 15.3 based SDFU bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186734?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 13:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1bc3b9a-dc9f-4a29-aaf9-e6499b62ec93</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Yeah, flashing the example images works fine.&lt;/p&gt;
&lt;p&gt;What I noticed now is that if I merge the bootloader_settings file in at all it doesn&amp;#39;t work (ie nothing comes out the RTT).&amp;nbsp; If I merge the BL, SD, and app and run it, it runs fine (of course with the invalid app problem).&amp;nbsp; If I merge in the bootlaoder settings, or manually flash it, nothing comes out RTT.&lt;/p&gt;
&lt;p&gt;I do use application-setting = 0.&amp;nbsp; Here is the line I&amp;#39;m using to generate the bootloader settings:&lt;/p&gt;
&lt;p&gt;nrfutil settings generate --family NRF52840 --application $(OUTPUT_DIRECTORY)/nrf52840_xxaa.hex --application-version 0&amp;nbsp; --bootloader-version 0 --bl-settings-version 2 $(OUTPUT_DIRECTORY)/bootloader_settings.hex&lt;/p&gt;
&lt;p&gt;I&amp;#39;m concerned that this is GCC related, as discussed in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/4610/combining-sd-dfu-and-application-hex-and-programming#post-id-22246"&gt;this post&lt;/a&gt;.&amp;nbsp; Do I need to manually hack the settings file?&amp;nbsp; Look in the accepted answer.&lt;/p&gt;
&lt;p&gt;M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186718?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 13:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c8058e-960b-4718-a3a0-d888e65ae0da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Medved,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please test using one of our example image, just to be sure&amp;nbsp;the issue can be reproduced with any image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the script you used to generate bootloader setting ? Do you use application-version = 0 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to compare the hex you have after you merged everything with the hex of the bootloader setting to check if the bootloader setting was merged without any modification ?&lt;/p&gt;
&lt;p&gt;The log &amp;quot;&amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.&amp;quot; saying that the bootloader setting has not marked the application as valid on bank 1.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186680?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 11:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6039029-246b-4a7e-b707-a9f4b2fa2e49</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;No problem, I created it because I needed it and it could be useful for other as well. &amp;nbsp; Just recently that you are allow to use the DK to flash external board. &amp;nbsp;It wasn&amp;#39;t the case before. &amp;nbsp;The IDAP was created initially for that purpose and also allows parallel flashing for production and it is not limited to nRF. &amp;nbsp;I am not forcing you to use it, just give you an alternative. &amp;nbsp;The choice is yours to make.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186658?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 11:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd48da33-069e-4acf-9f78-f12c269ba6ba</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Nguyen - you should probably say something like &amp;quot;full disclosure, I&amp;#39;m the creator of IDAP....&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This isn&amp;#39;t really a good solution for me, I can&amp;#39;t just tell my board vendors &amp;quot;use this special chip to program the board&amp;quot;.&amp;nbsp; &amp;nbsp;I need to have my project correctly set up, and using the Nordic tools correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining app + bootloader + sd + settings page on v15.3</title><link>https://devzone.nordicsemi.com/thread/186492?ContentTypeID=1</link><pubDate>Sat, 11 May 2019 05:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94213066-baa3-4610-89f1-d5f94ba8102e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Alternatively, you can use the &lt;a href="http://embeddedsoftdev.blogspot.com/p/idap-link.html"&gt;IDAP-Link CMSIS-DAP JTAG&lt;/a&gt; to flash the whole thing without any merging or generating setting page. &amp;nbsp;The IDAPnRFProg command line program provided is specifically made to flash SD + App + DFU directly and automatically sets all require settings. &amp;nbsp;Nothing to merge, just give it the 3 hex files that&amp;#39;s it. &amp;nbsp;The software is avail for Linux, Windows, OSX &amp;amp; RPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>