<?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>Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58960/hash-of-the-received-firmware-image-does-not-match-the-hash-in-the-init-packet</link><description>Hello, 
 
 I have implemented DFU using I2C by modifying the original nrf_dfu_serial_uart.c file. Also, on the master side I have added an I2C adapter class. 
 
 The communication seems to be fine between the master and slave. The firmware upgrade process</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jun 2020 09:30:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58960/hash-of-the-received-firmware-image-does-not-match-the-hash-in-the-init-packet" /><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/256356?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 09:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fdff981-c979-4582-b27a-6249f34929ba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;Good to hear. Thank you for letting us know!&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/256322?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 07:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eee32f7-104f-439b-8dba-c6be6b700b90</guid><dc:creator>Navin</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The issue here was related to the flash alignment. Since we removed the SLIP encoding, which took care of the memory alignment, we had to fix this by offsetting the start address by certain value (3). It now works fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/245294?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 15:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8539af30-1ac5-4144-a516-a4738aab9fd3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have an explanation for this, but it is interesting that you only see the issue with debug builds. Can you upload the complete project here so that I can have a look? You can also upload it in a private case and refer to this thread if you prefer that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/244699?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 11:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2637e6e8-f90e-4dd2-8647-574542390a10</guid><dc:creator>Navin</dc:creator><description>&lt;p&gt;Hello Einar,&lt;/p&gt;
&lt;p&gt;I reduced the FLASH_PH_SIZE by 0x2000, but that doesn&amp;#39;t work too. The same code works in non-debug example, but fails at the CRC validation after receiving first block(4096 bytes).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="CRC Fails" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/CRC_5F00_Fail.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please see the image above about the error reported.&lt;/p&gt;
&lt;p&gt;What can be done about this?&lt;/p&gt;
&lt;p&gt;Please let me know!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/241094?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 11:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9669b91f-2b0f-4074-8bb2-1b985e71adc4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to edit the section placement macros of the project, which you find from Project -&amp;gt; Options..., then as shown in this screenshot:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7bd7e72c13a44fbf91e798600e0c75ab/section_5F00_placement.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;First of all, you could reduce&amp;nbsp;FLASH_PH_SIZE by 0x2000 to see if you get a linker error (and keep it reduced regardless). If you do, then this is (at least part) of the problem. Then you fix it by moving down the bootloader start address (FLASH_START) by 0x2000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/241071?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 10:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb508a17-f066-4d6b-83d0-9c61396b4569</guid><dc:creator>Navin</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you direct&amp;nbsp;me regarding bootloader start address? Where can I find this in the settings (SES). By how much would you suggest me to change it?&lt;/p&gt;
&lt;p&gt;The bootloader in DEBUG mode worked fine a few times, after I removed redundant for-loop-print statements. But now, again, the same problem is occuring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/239382?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 15:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f113e31f-8880-4b5c-8726-41c259022f07</guid><dc:creator>Navin</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I will give it a try and update you on this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/239372?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 14:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be506de8-734f-4800-aa3e-3056c613fab8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I have not checked in detail, but from the log, it looks like the transferred data is identical. If that is the case, then it should work, as you write.&lt;/p&gt;
&lt;p&gt;There is one typical issue when modifying the bootloader, which we should rule out. If you are using SES, the bootloader project in the SDK is misconfigured, and will not generate a build error if the image is up to two pages (8 kB) too large, overwriting MBR params and bootloader settings. In this case, you would see undefined behavior. Can you try to move the bootloader start address down with two pages and see if this changes anything? This is a long shot, but it is worth ruling out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hash of the received firmware image does not match the hash in the init packet</title><link>https://devzone.nordicsemi.com/thread/239269?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 08:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9078a918-60b1-43db-a69e-c3037763f2ca</guid><dc:creator>Navin</dc:creator><description>&lt;p&gt;The solution of increasing the STACK size didn&amp;#39;t help as suggested in this &lt;a title="Hash Problem Yosi" href="https://devzone.nordicsemi.com/f/nordic-q-a/36884/hash-problem-during-dfu-of-bootloader"&gt;LINK.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>