<?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>How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49070/how-do-i-create-a-firmware-software-hex-file</link><description>Hey everyone! My team and I are working on making a hex file that contains the soft device and software, as found in the 15.3.0 SDK, in the secure dfu test images folder. 
 These hex files can be directly programmed to the device (in our case, nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Dec 2020 19:43:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49070/how-do-i-create-a-firmware-software-hex-file" /><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/285718?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 19:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06caf91b-caf9-42c6-8894-b443d925888d</guid><dc:creator>DarrellH</dc:creator><description>&lt;p&gt;Link is broken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/198763?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 14:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c5c4a03-e8af-4a6e-8877-a778a44147d5</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay!&lt;/p&gt;
&lt;p&gt;So in that case you should have a look at &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide&lt;/a&gt;. This guide goes through all the steps required for performing DFU with your own set of keys and with an example you build yourself.&lt;/p&gt;
&lt;p&gt;You should find the application hex file in a build directory from the same folder as the project file (or somewhere very close in the file hierarchy.)&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: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/196068?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 18:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc860122-ec15-4ce2-a043-eb43cc027a22</guid><dc:creator>dportz</dc:creator><description>&lt;p&gt;Hi tesc,&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply.&amp;nbsp; We&amp;#39;re trying to make hex files that can be flashed to the nrf board, just like the hex file (test images) you provide in the SDK.&amp;nbsp; Since it is a secure dfu, we cannot use the example images because they would not contain our public key that corresponds to the private key that we will be inserting in the software packages that will be pushed out for the OTA DFU.&lt;/p&gt;
&lt;p&gt;Alternatively, if you could provide instructions on modifying your example images to use our key, that would be great!&lt;/p&gt;
&lt;p&gt;As for my understanding of the examples, I have successfully flashed the board with not only the test images (and verified that they are able to perform DFUs),&amp;nbsp; but I have also built and programmed the dfu/secure_bootloader project in SES (and verified that it is able to perform DFUs).&amp;nbsp; The problem is that we are unable to:&lt;/p&gt;
&lt;p&gt;-Adapt the project in SES to the Arduino IDE&lt;/p&gt;
&lt;p&gt;-Modify the prebuilt DFU images to use our key&lt;/p&gt;
&lt;p&gt;-Make a DFU image like the prebuilt BUT containing our key&lt;/p&gt;
&lt;p&gt;All we need to do is get one of the above three items working.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/196062?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 16:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1e16322-f5db-4a68-ac7a-d44d6e03ab55</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you had a look at the DFU bootloader examples, and went through the DFU process manually and gotten a solid understanding of the steps involved? It is not 100 % clear to me what you are trying to set up, but you should be able to do almost anything using &amp;quot;User Build Step&amp;quot; options in SES.&lt;/p&gt;
&lt;p&gt;There are two types of files in the secure_dfu_test_images folder. The .zip files are DFU packages, while the .hex files are various combinations of SoftDevices, setting pages, DFU bootloaders and applications. Note that in the DFU packages, SoftDevice, bootloader and application are separate parts (not merged into one hex file). Generating a DFU package for updating both bootloader and SoftDevice is done by providing two hex files to nrfutil.&lt;/p&gt;
&lt;p&gt;The example packages contains only one type of update, either bootloader, SoftDevice, or application. Combinations are possible, but then the package contains multiple images.&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: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195763?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 20:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46329a69-fbb8-40c9-9d8b-e36084e8dfd5</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You asked how to down load a hex file.&lt;/p&gt;
&lt;p&gt;But doing DFU is different.&lt;/p&gt;
&lt;p&gt;You need the bootloader, and the files have to be specially prepared.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195762?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 19:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512089b3-54c4-44d9-90f3-885385800994</guid><dc:creator>dportz</dc:creator><description>&lt;p&gt;Dear awneil,&lt;/p&gt;
&lt;p&gt;I really appreciate your help, but I just said that programming it did not work.&lt;/p&gt;
&lt;p&gt;I used the (SES Target&amp;gt;Download File&amp;gt;Intel Hex) command.&amp;nbsp; I used the hex file created as documented.&amp;nbsp; It still does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195760?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 19:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b18d0e2-c4f9-43f4-8e88-c89539c922bd</guid><dc:creator>awneil</dc:creator><description>[quote userid="81073" url="~/f/nordic-q-a/49070/how-do-i-create-a-firmware-software-hex-file/195756"]is there a way to program the merged hex file[/quote]
&lt;p&gt;Yes - you just tell the tool the file, and program it!&lt;/p&gt;
&lt;p&gt;The Intel Hex format includes all the necessary address information - that is the point of it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195756?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 18:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22c907a2-3385-4c7b-9a08-2df30b76815e</guid><dc:creator>dportz</dc:creator><description>&lt;p&gt;Hi awneil,&lt;/p&gt;
&lt;p&gt;I have now been able to merge the two files!&amp;nbsp; You were right- SES does output a .hex version of the executable in the same folder as the .elf.&amp;nbsp; My mistake was that I thought that it was somehow the softdevice.&lt;/p&gt;
&lt;p&gt;I was able to run the mergehex command and generated the merged hex file with the executable and the softdevice.&amp;nbsp; I chose to do this to the dfu ble project.&amp;nbsp; I uploaded the merged hex file to the device (SES Target&amp;gt;Download File&amp;gt;Intel Hex) and when complete, it appears on the list of bluetooth devices.&amp;nbsp; I can then connect to it, but I cannot perform the dfu OTA, as it simply rejects the zipped, certified package (connects, tries to send, then disconnects).&lt;/p&gt;
&lt;p&gt;My question is: how can I program this merged hex file to the board with the SES tool (SES Target&amp;gt;Download File&amp;gt;Intel Hex)?&amp;nbsp; I see the SES project does have a memory map file, and am unsure as to how the IDE could possibly know how to program the hardware without this file incorporated into the merged hex.&amp;nbsp; I also looked at the size of the hex file, in comparison to the available flash size, and found that the hex file (400KB) should be overflowing both the SoftDevice partition and the Application partition...&lt;/p&gt;
&lt;p&gt;Essentially, is there a way to program the merged hex file?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195194?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 14:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc083495-ed8d-43e2-9711-4fe0c44ae094</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So convert the ELF to hex first.&lt;/p&gt;
&lt;p&gt;SES does that by default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195191?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 14:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2468e1d-669d-409f-8e6a-491956f0a7a5</guid><dc:creator>dportz</dc:creator><description>&lt;p&gt;Hi awneil, thank you for the hyper-fast reply!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve looked into mergehex a bit, but it appears that it only merges hex files.&amp;nbsp; We need to merge the .hex (soft device) with the .elf (software).&amp;nbsp; Is this possible with mergehex?&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I create a firmware + software hex file?</title><link>https://devzone.nordicsemi.com/thread/195173?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 13:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50b3c747-945c-4c53-ad6a-3489f5773539</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_command_line_tools_lpage.html"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_command_line_tools_lpage.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>