<?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>PCA10056 flash the merge hex</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23136/pca10056-flash-the-merge-hex</link><description>Q1 I compile sdk13.0.0 generate nrf52840_xxaa.hex(app), nrf52840_xxaa_s140.hex(bootloader).
I used merge tool make a hex file, then burn the file into PCA10056 DK by nrfjprog, but system reset entry DFU mode. 
 mergehex -m s140_nrf52840_5.0.0-2.alpha_softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2017 08:33:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23136/pca10056-flash-the-merge-hex" /><item><title>RE: PCA10056 flash the merge hex</title><link>https://devzone.nordicsemi.com/thread/90994?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 08:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:155f3a05-2c13-4e99-812c-58e829ec242a</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1&lt;/strong&gt; The problem is that it is the bootloaders task to validate the application based on CRC during boot, also it needs to set an &amp;quot;application present&amp;quot; flag so it knows there is an application there. This is automatically done when you first flash the bootloader, then use the bootloader to upload the application. If you want to merge the application and bootloader &lt;em&gt;before&lt;/em&gt; flashing, a settings page must be generated with the correct info about the application. This settings page will go in the last flash page after the bootloader (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/lib_bootloader.html#lib_bootloader_memory"&gt;memory layout&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;To generate the settings page you can use the &lt;strong&gt;nrfutils&lt;/strong&gt; tool. Please see this link: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_settings_generate_display.html"&gt;infocenter.nordicsemi.com/.../nrfutil_settings_generate_display.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The settings page must then be merged with application (and SD) and bootloader using &lt;strong&gt;mergehex&lt;/strong&gt;, and then flashed using &lt;strong&gt;nrfjprog&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q2&lt;/strong&gt; nRFgo studio has some internal checks that fail with certain types of hex files. We are working on a solution to this. Meanwhile, we recommend using &lt;strong&gt;nrfjprog&lt;/strong&gt; instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>