<?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>.bin file in dfu .zip package is unreasonably big / large - can&amp;#39;t perform FWU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76034/bin-file-in-dfu-zip-package-is-unreasonably-big-large---can-t-perform-fwu</link><description>Hello, 
 I am currently working with nrf51840 on the 15.3 SDK. I am trying to generate some .zip dfu packages. Which I have been able to do before running nrfutil.exe. 
 For example I have used what i call &amp;quot;version 15&amp;quot; for which after I build I get a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 06:48:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76034/bin-file-in-dfu-zip-package-is-unreasonably-big-large---can-t-perform-fwu" /><item><title>RE: .bin file in dfu .zip package is unreasonably big / large - can't perform FWU</title><link>https://devzone.nordicsemi.com/thread/314074?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 06:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3220d39-3401-4fa6-8c62-1add292555ab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Varouzan"]So the boot loader setting are being merged into what I though was purely the app .hex file.Based on your response the boot loader settings .hex file should not be fed into nrfutil but purely the application.hex[/quote]
&lt;p&gt;This explains why you see this, then. The bin file will include all the empty space between the application and the bootloader settings page in this case (and also overlap the bootloader). The bootloader settings page should only be programmed to the device during initial programming. It is never part of the DFU zip package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .bin file in dfu .zip package is unreasonably big / large - can't perform FWU</title><link>https://devzone.nordicsemi.com/thread/314040?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 20:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d897bfc6-835f-4fc0-b6c2-934b87d403c1</guid><dc:creator>Varouzan</dc:creator><description>&lt;p&gt;So, I am generating the .zip file from the application .hex file. I do not include the boot loader or the soft decvie hex file.&lt;/p&gt;
&lt;p&gt;S, I have picked up this project and there has been this recent change which I think is the culprit... &lt;pre class="ui-code" data-mode="text"&gt;..\sw-bootloader\nrfutil\nrfutil.exe settings generate  --family NRF52840 --application Build\exe\NVT.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 Build\exe\nvt_bootloader_setting.hex

mergehex -m Build\exe\NVT.hex Build\exe\nvt_bootloader_setting.hex -o Build\exe\NVT.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So the boot loader setting are being merged into what I though was purely the app .hex file.Based on your response the boot loader settings .hex file should not be fed into nrfutil but purely the application.hex?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .bin file in dfu .zip package is unreasonably big / large - can't perform FWU</title><link>https://devzone.nordicsemi.com/thread/314022?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 17:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa557c1f-b7be-49af-b2ed-2867f493a1d3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you only load the application hex on the right side here? That is what we are interested in. To me it looks like you lorded also SoftDevice, bootloader etc. What I am interested in here is only the application hex, assuming that is what you try to convert to a binary file? If you try to convert a merged hex file to bin, which consists of also bootloader, SoftDevice etc. it will span the entire flash and include all the blank space as well.&lt;/p&gt;
&lt;p&gt;I wonder if the root problem here is that you are generating the .zip file from a merged hex file? Please note that that cannot be done. You can include both SoftDevice, bootloader and application in a .zip file for DFU, but they must be separate hex files (and you refer to them by specific options in nrfutil (see&amp;nbsp;&lt;code&gt;nrfutil pkg generate --help&lt;/code&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .bin file in dfu .zip package is unreasonably big / large - can't perform FWU</title><link>https://devzone.nordicsemi.com/thread/314001?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 15:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e653eddf-93dc-4467-8441-5d56bf5dddb7</guid><dc:creator>Varouzan</dc:creator><description>&lt;p&gt;Hey Einar&lt;/p&gt;
&lt;p&gt;I get these 1048576 byte sectors &amp;quot;blank sectors&amp;quot; in places In wouldn&amp;#39;t expect to see anything. But I don&amp;#39;t know if that is some weird GUI bug or not. Because it also shows up in my software versions for which I can generate goof FWU files.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2021_2D00_06_2D00_07_5F00_11_2D00_52_2D00_04.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2021_2D00_06_2D00_07_5F00_11_2D00_51_2D00_45.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2021_2D00_06_2D00_07_5F00_10_2D00_47_2D00_35.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .bin file in dfu .zip package is unreasonably big / large - can't perform FWU</title><link>https://devzone.nordicsemi.com/thread/313928?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 12:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c7f934-139c-455f-a3f9-4a6070ae0772</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The typical reason for getting a very large bin file compared to hex file is if you have some data in flash that is very high up, giving a lot of empty space in between. With a hex file that will not increase the size, as it does not include data that is not written (All 0xff&amp;#39;s). A bin file on the other hand is continuous, and will also include everything you do not need in between the first address you write to and the last address you write to. You can check if this is the case by for instance opening the .hex file in nRF Connect Programmer to see a graphical representation of it. Is it so?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>