<?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>Merged Hex File</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68248/merged-hex-file</link><description>Hello, 
 Softdevice: 7.0.1, SDK: 16.0, Device: nRF52840 
 In the production, we want to save time programming the devices. So I&amp;#39;m using following command to combine bootloader, softdevice and app into unified/merged hex file then program it through bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Nov 2020 09:19:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68248/merged-hex-file" /><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279872?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 09:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92d67917-e79f-4029-b9b4-8f502555b4ab</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try to debug the nrf_bootloader.c::dfu_enter_check() function inside the bootloader to find out what&amp;#39;s causing it to enter DFU mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279868?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 09:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9087112-7e07-4ba4-8b28-37947c5fb3de</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;Yes, the same app.hex works with same softdevice and bootloader. The only&amp;nbsp;caveat is that the device needs to be power cycled after DFU update. The application, then runs normally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above case, the device remains in DFU mode no matter how many times it&amp;#39;s power cycled.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279858?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 08:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ba079d5-4fef-4812-9232-381736bf929a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;m not sure if the problem is related to the Settings page then. Does the application run ok if you upload it through DFU instead of programming it directly with the debugger?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279782?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d36dd09b-ef5e-405a-ac7a-f77bb0670936</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;Nop, this change did not work as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279776?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:496e5dd5-da2e-466c-bc63-d164a4e2dea2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I thought you were using the 52832, not the nrf52840. The &amp;quot;--family&amp;quot; argument must be set to&amp;nbsp;NRF52840 instead of NRF52 then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279774?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4c2af9-944b-43cd-afc1-84a4f341acad</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;The %APPHEX% is defined only once and same is used on both occasions.&lt;/p&gt;
&lt;p&gt;I tried using&amp;nbsp;NO_VALIDATION instead of&amp;nbsp;&lt;span&gt;VALIDATE_GENERATED_CRC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The issue remains the same.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279727?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 13:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa0541b-2e8d-4b18-9396-48518c0d39bc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did you use pass the same %APPHEX% file as the one you used in the merged image? The bootloader will only boot the application image if it its computed CRC is the same as the one that is stored in the bootloader settings. You could also try to replace VALIDATE_GENERATED_CRC with NO_VALIDATION to skip the boot validation check and see if it makes any difference.&lt;/p&gt;
&lt;p&gt;The Bootloader versioning is up to you to decide. You can start with version 1 if you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279711?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 12:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c605a108-f4ab-4b3c-a178-5669444d5fc6</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;I tried this, created bl_settings.hex file but still the issue remains same. What should be the BL_VERSION or bootloader version value should be? I have taken the bootloader from SDk16.0 secure bootloader example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merged Hex File</title><link>https://devzone.nordicsemi.com/thread/279625?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 07:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f6fd737-9a9a-4eb4-8d49-f284dc233bca</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You need to generate and merge the Bootloader settings page as well. The settings page contains the information needed by the bootloader to verify and boot the application.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example of how you can generate it with nrfutil:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="bat"&gt; nrfutil settings generate --family NRF52^
 --application %APPHEX%^
 --application-version-string &amp;quot;%APP_VERSION_STRING%&amp;quot;^
 --bootloader-version %BL_VERSION%^
 --bl-settings-version 2^
 --app-boot-validation VALIDATE_GENERATED_CRC^
 bl_settings.hex&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>