<?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>nrfutil pkg generate with bootloader only generates unexpected and invalid package</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53398/nrfutil-pkg-generate-with-bootloader-only-generates-unexpected-and-invalid-package</link><description>Hi, 
 I&amp;#39;m trying to generate a ZIP file for DFU update of the bootloader only. I&amp;#39;m using nrfutil 5.2.0 (but also tried the master branch of the github repository pc-nrfutil, it results in the same behavior). 
 nrfutil pkg generate --bootloader Bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 09:21:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53398/nrfutil-pkg-generate-with-bootloader-only-generates-unexpected-and-invalid-package" /><item><title>RE: nrfutil pkg generate with bootloader only generates unexpected and invalid package</title><link>https://devzone.nordicsemi.com/thread/216319?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 09:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f10c2e-aba3-4e59-9339-5d65335a9cac</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like a typo in the document.&lt;/p&gt;
&lt;p&gt;Yes, you are right. What they mean is that you can either pass a *.bin or a *.hex file (in intelHex format). However, the nrfutil expects it to be .hex which&amp;nbsp;is the output in all of our SDK examples.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;-Amanda H.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil pkg generate with bootloader only generates unexpected and invalid package</title><link>https://devzone.nordicsemi.com/thread/216218?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 15:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aec0e5f3-6a94-4af5-8caa-3b2f0375c2e1</guid><dc:creator>andreasd</dc:creator><description>&lt;p&gt;Hi Amanda, thanks for the reply. What does the documentation mean by &amp;quot;hexadecimal format&amp;quot;? I&amp;#39;m pretty sure nrfutil works with what I think are Intel HEX files, as long as they have the file extension .hex.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil pkg generate with bootloader only generates unexpected and invalid package</title><link>https://devzone.nordicsemi.com/thread/215711?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 12:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:574e0d88-d4b8-4541-a7f3-d09abd0bfac5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;According to the&amp;nbsp;&lt;a title="Creating a firmware package with nrfutil" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_bootloader_dfu_validation.html?cp=5_1_3_5_1_1_1#lib_dfu_image"&gt;Creating a firmware package with nrfutil&lt;/a&gt;&amp;nbsp;page:&lt;/p&gt;
&lt;p&gt;You can add the following firmware images in &lt;strong&gt;binary or hexadecimal&lt;/strong&gt; format to the zip file:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;--application&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;image:&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;an image of an application&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--bootloader&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;image:&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;an image of a bootloader&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--softdevice&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;image:&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;an image of a SoftDevice&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;However, Intel HEX is not recognized or supported by nrfutil.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I would report to the development team. Thanks for the feedback.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil pkg generate with bootloader only generates unexpected and invalid package</title><link>https://devzone.nordicsemi.com/thread/215650?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 08:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30268a3b-843f-42c7-a50f-5aad2640739b</guid><dc:creator>andreasd</dc:creator><description>&lt;p&gt;Found the culprit: The problem is the file ending .ihex (which was used by the Toolchain/Makefile I was using to generate the project).&lt;/p&gt;
&lt;p&gt;nrfutill doesn&amp;#39;t seem to recognize this as a valid hex file and does strange things with it. Renaming the file to Bootloader.hex yields the expected result.&lt;/p&gt;
&lt;p&gt;Still, would you consider this a bug in nrfutil that should be fixed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>