<?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>Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5777/problems-with-hex-and-dat-file</link><description>I have built a application with IAR, and made a hex file with Intel extended. It’s works fine with nRFgo Studio. But I got problems with dfu updating from my android. I hope the problems are the DAT-file. When I put the app-hexfile trough hex2bin and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Apr 2017 19:18:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5777/problems-with-hex-and-dat-file" /><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20203?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 19:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4841e495-d3b8-49a2-83d4-3c5ab0ac05ff</guid><dc:creator>Abhishek</dc:creator><description>&lt;p&gt;Hi Mart/Amanda,&lt;/p&gt;
&lt;p&gt;The her file created  from IAR  is fine.  If you able to build it from IAR and it&amp;#39;s  working  for you.  Now whatever  the hex file is created  by the IAR you have to convert  to bin.  For converting  you have to follow some set of rules.  Please  follow the given like for that&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.keil.com/support/docs/1584/"&gt;www.keil.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you will follow  the rules and create  the binaries  of input  hex file that will be good.  Won&amp;#39;t  create any problem for you.  And one more the hex file created  by the IAR is also differs  from IAR version.  Please make sure you are using  the latest  one.&lt;/p&gt;
&lt;p&gt;Thanks
Abhishek Shah&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20201?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2015 22:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b67883d-fd74-4497-9e66-4fe56c469f40</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;Thanks to colton for &lt;a href="https://devzone.nordicsemi.com/question/15947/build-with-optimization-does-not-work-with-dfu/"&gt;this&lt;/a&gt;. The bootloader and application work at high optimization (balanced) with static clustering disabled. The bootloader can then be based at 0x3C000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20200?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2015 21:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:720b230f-6d73-40b0-b9a3-e539d9813b26</guid><dc:creator>Amund Gloms&amp;#229;s</dc:creator><description>&lt;p&gt;I have just read trough your information Matt Barr, but I haven&amp;#39;t looked at your code. I have my optimization on high for the boot loader. It worked with for the example who followed the app, but not my own build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20199?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2015 20:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ccc31f-49d1-44fd-ba29-ae4d80cc5b8f</guid><dc:creator>Amund Gloms&amp;#229;s</dc:creator><description>&lt;p&gt;I was hoping for some help, I haven&amp;#39;t fix it yet. I would take a look at your link. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20198?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2015 20:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3acb8b6-25f2-47ce-aee8-5465b45207ba</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if you&amp;#39;re still working on this issue, but in &lt;a href="https://devzone.nordicsemi.com/question/30211/softdevice-update/"&gt;this question&lt;/a&gt; I added an answer that contains an IAR port of the dual bank BLE bootloader and an example application with DFU capability. It is based on the 7.2.0 SDK and 7.1.0 softdevice. I have not had any problems running this bootloader and softdevice combination on nrf51422 and nrf51822 rev 2 silicon.&lt;/p&gt;
&lt;p&gt;One other comment, DFU fails using the IAR-built bootloader with optimizations enabled. I&amp;#39;ve had success building the bootloader at -On and locating it at 0x3A000. This address shows up in the .icf and in dfu_types.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20197?ContentTypeID=1</link><pubDate>Sat, 28 Feb 2015 15:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d95589e-ddbf-499b-87cc-ebbaba4cdaf4</guid><dc:creator>Amund Gloms&amp;#229;s</dc:creator><description>&lt;p&gt;I&amp;#39;m using IAR for both app and bootloader&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20202?ContentTypeID=1</link><pubDate>Sat, 28 Feb 2015 13:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:073dbcb9-248c-42a4-a6f0-af3159465ee2</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;Hi Amund, I&amp;#39;m not completely clear on which tool chain you&amp;#39;ve used to build which components, but DFU did not work for me when trying to use a bootloader built with the Keil tool chain and a DFU-capable application built with the IAR tool chain. DFU works for me when both are built with Keil, or both are built with IAR. I&amp;#39;m using the 7.2.0 SDK, dual bank bootloader, and 7.1.0 S110 (2.0.1 S310).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20196?ContentTypeID=1</link><pubDate>Fri, 27 Feb 2015 22:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076a9f26-6f3f-4eed-a7d5-15ad6845a58d</guid><dc:creator>Amund Gloms&amp;#229;s</dc:creator><description>&lt;p&gt;Changing the dat-file doesn’t help. Thanks Oceanide, this link would make it easier with later releases.
The S110 release that I&amp;#39;m using is 7.0.0, and I get IC revision 2 of 51822
The DFU bootloader is built from nRF51_SDK_7.1.0_372d17a  with dfu_single_bank
I tested the bootloader with the ble_app_hrs_dfu_s110_v7_1_0 who comes default with nRF Master Control Panel, and this is downloaded, and I can inspect it in flash on my unit. But when I try my own built app, the flash is empty. And I get Remote DFU error: REMOTE DFU NOT SUPPORTED.
I have added the hex, dat and the Master Control Panel log. The hex file is Intel extended, IAR. I hope this is not an IAR problem. Any suggestion?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/LinkLoad.hex"&gt;LinkLoad.hex&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7450.application.dat"&gt;application.dat&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/log.pdf"&gt;log.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Solved this with what I get from colton and Matt Barr,Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20193?ContentTypeID=1</link><pubDate>Fri, 27 Feb 2015 14:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f56005-509d-47bb-bdf7-885d1995d182</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Amund,&lt;/p&gt;
&lt;p&gt;[EDITED] I agree with MattBarr , you need only to switch the byte, so it should be 66FD.
Which problem did you have when doing DFU?
Could you upload here a hex file sample so that we can try and test here ? I am suspecting there could be an issue with the hex file generated by IAR.
Please mention the S110 version that you used with the hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20195?ContentTypeID=1</link><pubDate>Fri, 27 Feb 2015 13:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bad452a4-b02e-4141-bb4f-c30005d2b628</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;Hi Amund, try: ffff ffff ffff ffff 0200 4f00 5a00 66fd  vs. 66df.&lt;/p&gt;
&lt;p&gt;Reverse just the two CRC bytes, not the nibbles!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with HEX and DAT file</title><link>https://devzone.nordicsemi.com/thread/20194?ContentTypeID=1</link><pubDate>Fri, 27 Feb 2015 02:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f09d3e-f392-4837-9b3a-d58326d9f6ea</guid><dc:creator>oceanide</dc:creator><description>&lt;p&gt;The following site will be helpful.
&lt;a href="https://github.com/hellprototypes/nRF51DfuInitPacket"&gt;github.com/.../nRF51DfuInitPacket&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>