<?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>Serial DFU fails validation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53599/serial-dfu-fails-validation</link><description>Hi 
 I am using SDK V. 15.3.0 and Softdevice S132 6.1.1 on a nRF52832. I am developing two devices, one of with is battery powered and one that is connected to a serial interface. Both devices connect via BLE. 
 The battery powered device allows application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2019 12:27:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53599/serial-dfu-fails-validation" /><item><title>RE: Serial DFU fails validation</title><link>https://devzone.nordicsemi.com/thread/216618?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 12:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb2231e0-6c1f-4e49-9fd8-e737a501e7ac</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;The error suggests that after the image is received on the nRF52 side, the calculation (post validation) of the image received showing that the hash of the packet doesn&amp;#39;t match with the hash in the init packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You would need to check if :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- The image you received and stored properly (read the flash out and compare it with the original image)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Check if the calculation in post validation&amp;nbsp;postvalidate_app() is correct&lt;/p&gt;
&lt;p&gt;- Check if the hash received in the init packet is parsed correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&amp;#39;s answer&amp;nbsp;in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48961/dfu-with-external-qspi-memory/213703#213703"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>