<?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>DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37637/dfu</link><description>I want to make a burn file, but I get an error when merging hex files. ： “The hex files cannot be merged since there are conflicts.”，When I cancel the compilation of the nrf_dfu_settings.c, the resulting hex can be merged smoothly. So what is the reason</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Aug 2018 15:45:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37637/dfu" /><item><title>RE: DFU</title><link>https://devzone.nordicsemi.com/thread/145717?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 15:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b81cff7-d3d4-43fd-9d4a-64ae254523bf</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This turns out to be a known bug in nRF5 SDK v12.2.0, where the (experimental) buttonless DFU hex file contains a register in the UICR. It was fixed for nRF5 SDK v13.0.0, as part of other changes where nrf_dfu_settings.c was no longer needed. However in the buttonless DFU example in SDK 12.2.0 some of the functionality in nrf_dfu_settings.c is still needed.&lt;/p&gt;
&lt;p&gt;A manual fix for the hex files is to remove the following two lines from the application hex file:&lt;/p&gt;
&lt;p&gt;:020000041000EA&lt;br /&gt;:0410180000E00700ED&lt;/p&gt;
&lt;p&gt;(But keep them in the bootloader hex file!)&lt;/p&gt;
&lt;p&gt;There is also a permanent fix. The register is set lines 69 through 89 in nrf_dfu_settings.c. (Starting with a brief stating &amp;quot;This variable makes the linker script write the mbr parameters page address to the UICR register(...)&amp;quot; This code must be included when building the bootloader. The code must be excluded when building the buttonless DFU application. I propose that you set a define BOOTLOADER in the bootloader project, and surround the mentioned code lines with &amp;quot;#ifdef BOOTLOADER&amp;quot; / &amp;quot;#endif&amp;quot;.&lt;/p&gt;
&lt;p&gt;I also recommend you to read through release notes for later SDKs up to the point where the buttonless DFU example is no longer experimental, and see if there are other bugs or issues that are relevant for you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU</title><link>https://devzone.nordicsemi.com/thread/145648?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 10:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c39cdbf-4e8a-498b-817f-3f66abe64ecc</guid><dc:creator>zwf</dc:creator><description>&lt;p&gt;HI &lt;/p&gt;
&lt;p&gt;Can I not use the&lt;span lang="en"&gt;&lt;span&gt; nrf_dfu_settings.c ？ &lt;/span&gt;&lt;/span&gt;not use the&amp;nbsp; struct nrf_dfu_settings_t ？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU</title><link>https://devzone.nordicsemi.com/thread/145641?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 09:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a639a364-7a4f-49bf-bb0d-16375c6f1641</guid><dc:creator>zwf</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;(1) :&amp;nbsp;&amp;nbsp; I try to merge bootloader.hex and app.hex only ,and i still get the same error.&lt;/p&gt;
&lt;p&gt;(2) :&amp;nbsp; Yes , i add buttonless DFU example code in my project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU</title><link>https://devzone.nordicsemi.com/thread/145561?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 16:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a568a7-e8ef-4b07-8b46-df2ab02da9ab</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Basically the error means that the two hex files contain data for the same memory location. In this case the conflict seems to be with bootloader.hex and app.hex. In order to confirm and investigate further, can you check that if you try to merge those two files only you still get the same error? (I.e. try &amp;quot;mergehex --merge bootloader.hex app.hex --output test.hex&amp;quot;)&lt;/p&gt;
&lt;p&gt;In order to investigate further, I would like to have a look at the files themselves. If you cannot share them here on the public forum then please create a private ticket and refer to this case. You can also let me know here and I will find the new (private) case in our systems.&lt;/p&gt;
&lt;p&gt;If I understand things correctly you have based your application on the buttonless DFU example from 12.2. Is that correct? Please note that that example was experimental in SDK 12.2.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU</title><link>https://devzone.nordicsemi.com/thread/145006?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 03:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1b14dc1-ca6b-4042-84ca-28bfaea99b08</guid><dc:creator>zwf</dc:creator><description>&lt;p&gt;CMD ：&lt;/p&gt;
&lt;p&gt;nrfutil settings generate --family NRF52 --application app.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 bootloader_settings.hex&lt;br /&gt;mergehex --merge bootloader.hex softdevice.hex --output production_final1.hex&lt;br /&gt;mergehex --merge production_final1.hex app.hex --output production_final2.hex&lt;br /&gt;mergehex --merge production_final2.hex bootloader_settings.hex --output final.hex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;LOGO ：&lt;/p&gt;
&lt;p&gt;nrfutil settings generate --family NRF52 --application C003S_nRF52_PG000.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 bootloader_settings.hex&lt;br /&gt;&lt;br /&gt;Generated Bootloader DFU settings .hex file and stored it in: bootloader_settings.hex&lt;br /&gt;&lt;br /&gt;Bootloader DFU Settings:&lt;br /&gt;* File:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bootloader_settings.hex&lt;br /&gt;* Family:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nRF52&lt;br /&gt;* CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xA74D6B78&lt;br /&gt;* Settings Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* App Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* Bootloader Version:&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* Bank Layout:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* Current Bank:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* Application Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00018264 (98916 bytes)&lt;br /&gt;* Application CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xB07BABE6&lt;br /&gt;* Bank0 Bank Code:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mergehex --merge bootloader.hex softdevice.hex --output production_final1.hex&lt;br /&gt;Parsing input hex files.&lt;br /&gt;Merging files.&lt;br /&gt;Storing merged file.&lt;br /&gt;&lt;br /&gt;mergehex --merge production_final1.hex app.hex --output production_final2.hex&lt;br /&gt;Parsing input hex files.&lt;br /&gt;Merging files.&lt;br /&gt;ERROR: The hex files cannot be merged since there are conflicts.&lt;br /&gt;&lt;br /&gt;mergehex --merge production_final2.hex bootloader_settings.hex --output C003S_NOBTN_DFU_PG000_V0.0.0.hex&lt;br /&gt;Parsing input hex files.&lt;br /&gt;ERROR: One of the files to merge cannot be found.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU</title><link>https://devzone.nordicsemi.com/thread/144984?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 15:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1544894-aeba-462b-987c-74c5564a098f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrf_dfu_settings.c is part of the bootloader, and it is needed for the bootloader to function correctly.&lt;/p&gt;
&lt;p&gt;What hex files are you merging?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>