<?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>DFU .dat file checksum verification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66841/dfu-dat-file-checksum-verification</link><description>Hello, 
 We are using nRF52840 with SDK 15.2.0, a bootloader and the SoftDevice. We are able to perform a DFU by downloading the .bin and .dat files of the new firmware in Flash memory, to fill the DFU settings structure with the correct values, and after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Oct 2020 09:23:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66841/dfu-dat-file-checksum-verification" /><item><title>RE: DFU .dat file checksum verification</title><link>https://devzone.nordicsemi.com/thread/273970?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65129943-6c49-4de4-a397-b83645f95d89</guid><dc:creator>Pierre cgwi22</dc:creator><description>&lt;p&gt;Hi Amanda, thanks for your answer.&lt;/p&gt;
&lt;p&gt;Finally we have found the solution. With the help of the command &amp;quot;&lt;code&gt;nrfutil pkg display my_file.zip&amp;quot;&lt;/code&gt; we have been able to discover where the SHA-256 hash of the .bin data is located in the .dat data. So now we can compute the hash of the .bin file and compare it to the expected hash in the .dat file.&lt;/p&gt;
&lt;p&gt;Our problem is solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU .dat file checksum verification</title><link>https://devzone.nordicsemi.com/thread/273716?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 11:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4723a690-021e-48e0-ae70-b101ca047488</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Pierre,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bootloader needs to know the checksum value of the application image in order to validate it on boot, and will fall back to DFU mode if it is unable to verify it.&amp;nbsp; The checksum value along with other flags are stored in the bootloader settings page. You can take a look at&amp;nbsp;&lt;a title="BLE Secure DFU Bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_dfu_bootloader.html?cp=7_1_4_4_0"&gt;BLE Secure DFU Bootloader&lt;/a&gt;&amp;nbsp;on how to check CRC.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>