<?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>Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51933/bootloader-file-specified-not-a-valid-hex-file</link><description>The example bootloader hex files within SDK 15.3 will load on the development board and seems to provide connection through nRF toolbox on a iphone 7 but will not load on custom hardware. The custom boards are fairly mature and have had good success with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2019 19:15:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51933/bootloader-file-specified-not-a-valid-hex-file" /><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/210226?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 19:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b1ef6b-09b3-4fd4-b2ff-287c2fcbc94e</guid><dc:creator>Cy</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;Yes, I have QFABs mixed in with QFAAs and the QFABs will not program, but the QFAAs will. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/209783?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 09:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe0417f-18e2-4b70-a66c-53eb8ef6e847</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. I understand. Thank you for explaining.&lt;/p&gt;
&lt;p&gt;So the issue is that you are not able to program the custom board with the hex file, and it is not related to the DFU process.&lt;/p&gt;
&lt;p&gt;What chip is on your custom board? May it be the QFAB, which has less RAM and Flash than the nRF52832 QFAA which is on the DK? You can see the different versions &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcomp_matrix_nrf52832%2FCOMP%2Fnrf52832%2Fic_revision_overview.html" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Do you get the same issue if you try to flash another example, such as the ble_app_blinky example, or is it only on the bootloader .hex file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/209674?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 14:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbb90acf-d258-4a2e-ba04-eb5b077c3f6e</guid><dc:creator>Cy</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;Well, I get that a lot! Sorry to be confusing. Before an nRF52832 can be a bootloader it needs firmware to tell it to bootload. So, a nRF52832 needs to be programmed with a hex file that has all the instruction to bootload. In my case Im just getting started DFUing with my custom hardware, fairly mature, to bootload applications. Nordic has at least a couple of examples, but within the nRF5_SDK_15.3.0_59ac345/examples/dfu/secure_bootloader/pca100_ble/armgcc folder is a good start to finishing what I am attempting, nothing out of the ordinary.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These examples have pre-compiled files that are bootloaders and they are specific to Nordic&amp;#39;s arm processors, in my case my custom hardware, I have selected the nRF52832, and utilize the command line tools for development on a windows 10 work station. nrfutil, nrfprog, make, gcc and specifically gcc-arm-none-eabi-7-2018 q2-update-win32-sha1.&lt;/p&gt;
&lt;p&gt;Programming the custom hardware is done with a development board which also has an nRfF2832 arm processor onboard as well as what I am guessing is an atmel chip to handle communication with the work station over USB. Developing with&amp;nbsp; the development board is nice, because when I run into unexplained situations I can often rule out hardware due to its performance on the development board compared with custom hardware.&lt;/p&gt;
&lt;p&gt;In this situation that is exactly what I have done, I am comparing programming the nRF52832 on the development board programmed by the atmel chip which might be called the segger system to programming the nRF52832 on my custom board. So, the pre-compiled hex files, which is a bootloader, works as expected with nRF52832 onboard the development board with the new nRF connect application on my iphone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now, the problem I have been attempting to describe is that I have custom hardware with a nRF52832, fairly mature, will not program that same pre-compiled DFU example through the development system I have been describing. The command line tools complain when I try to program the same pre-compiled file that it is not valid hex file and that it may have instruction outside the chips memory space, like a linking issue, wrong address inside the linker telling the segger system to load DFU firmware outside of the designated bootloader memory,0x00078000 - 0x0007E000 24kB in size, but this same hex file works on the development board nRF52832.&lt;/p&gt;
&lt;p&gt;In my limited time developing with Nordic I have not had to monkey with liker files, and again the same pre-compiled hex file which is a bootloader or DFU works on the development board but not the custom hardware.&lt;/p&gt;
&lt;p&gt;I have not attempted to create a zip file for an application because I have not been able to program the pre-compiled hex file which is the bootloader or DFU onto the custom hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/209532?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 07:11:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59c5b181-2fd0-4701-9619-7966d68ec092</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No problem.&lt;/p&gt;
&lt;p&gt;I am a bit confused to what you are actually doing. You speak of .hex files and DFU. Is it the .hex file of the bootloader that you are not able to program to the nRF, or have you created a .zip application image that you are not able to update over DFU?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/209274?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 20:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab3dcff-63f3-479f-be57-0840693be9eb</guid><dc:creator>Cy</dc:creator><description>&lt;p&gt;Hey Edvin,&lt;/p&gt;
&lt;p&gt;It is so nice of you to have an interest in my problem. Yes, I have looked at the DFU getting started guide many of the post I have looked at suggest this link, that is a good suggestion!!!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/209082?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 07:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c36d3c44-12d7-4b75-b352-cc256c535b8f</guid><dc:creator>Edvin</dc:creator><description>[quote user="drollinger"]Again, the custom hardware which is fairly mature and stable with other applications will not be programmed through development board and command line tools. However the development will and I can connect to the bootloader through nRFtoolbox.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest you have a look at the &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/" rel="noopener noreferrer" target="_blank"&gt;DFU getting started guide&lt;/a&gt;. &lt;br /&gt;If you try to follow the guide (on your custom board) where is it that your behavior differs from the guide?&lt;/p&gt;
&lt;p&gt;Are you able to flash anything at all through command line tools (or an IDE)? Just regular programming?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/208994?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 14:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf6645c-fa89-426f-bcf5-a66ad52e364a</guid><dc:creator>Cy</dc:creator><description>&lt;p&gt;I can not DFU as the bootloader will not program onto the nRF52832 of the custom board. But it is my intention to utilize the nrfutil.exe to create a zip and will try to upload to my iphone performing DFU through nRFtoolbox.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, the custom hardware which is fairly mature and stable with other applications will not be programmed through development board and command line tools. However the development will and I can connect to the bootloader through nRFtoolbox.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader: file specified not a valid hex file</title><link>https://devzone.nordicsemi.com/thread/208938?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 12:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcb01c73-a042-486d-b884-bd9765959453</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How do you perform the DFU? Command line tools or the nRF Toolbox app?&lt;/p&gt;
&lt;p&gt;If it is command line tools, how do you generate the image that you use for the DFU update? Can you copy-paste all the commands you use? If you use nRF Toolbox, what file do you use to perform the update?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>