<?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 Post Validate Fails at CRC16</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13518/dfu-post-validate-fails-at-crc16</link><description>Hi guys, 
 I&amp;#39;ve almost got DFU working on SDK10. However I am having issues at post validation of the image, specifically in the function dfu_init_postvalidate() in file dfu_init_template.c . In this function the CRC passed from the init file is compared</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Apr 2016 19:35:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13518/dfu-post-validate-fails-at-crc16" /><item><title>RE: DFU Post Validate Fails at CRC16</title><link>https://devzone.nordicsemi.com/thread/51599?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 19:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e127d8af-70a8-44f8-afa7-7e5d803c8c05</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I was simply using the SDK 10 bootloader example project.  I generated the zip and init file via nrf.exe (which matched the nrfStudio auto-init CRC generation).    Via debugging on the dfu_init_postvalidate() function I saw that the received and correct CRC does not match the one calculated via crc16_compute().  I&amp;#39;m not sure I&amp;#39;m allow to share our encrypted image however.  I&amp;#39;ll see&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Post Validate Fails at CRC16</title><link>https://devzone.nordicsemi.com/thread/51598?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 13:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85626ffb-16ec-4f1b-88fb-d9697cb61ad6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;I can have a deeper look into this if you provide me with the project and the related files and information for how to reproduce. If you need confidentiality you can create a case on &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;My page&lt;/a&gt;, where you attach the project. (Register a user for My page &lt;a href="https://www.nordicsemi.com/eng/user/register"&gt;here&lt;/a&gt; if you do not already have one.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Post Validate Fails at CRC16</title><link>https://devzone.nordicsemi.com/thread/51597?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 17:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8df984-443f-455c-9d2e-9890de084066</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;This is bizarre because they are definitely returning different results on the same image.  I tested calculations but at Bank 1 and Bank 0 in case something occured during the swap.   It occurs when the image is encrypted.  The nrf.exe calculates the same CRC as nrfStudio on the encrypted image.  But the crc16_compute() does not seem to calculate the correct CRC.  This suggests that the functions you mentioned are difference in how they calculate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Post Validate Fails at CRC16</title><link>https://devzone.nordicsemi.com/thread/51595?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 11:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56619194-b3d9-4574-9377-67c384882db0</guid><dc:creator>tesc</dc:creator><description>&lt;ul&gt;
&lt;li&gt;Do you get this crc mismatch using an SDK example, or is it a custom project?&lt;/li&gt;
&lt;li&gt;Are you able to reproduce using an SDK example?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Post Validate Fails at CRC16</title><link>https://devzone.nordicsemi.com/thread/51596?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 11:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6840214-b870-46cd-a8a1-f2bd30af51be</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;crc16_compute()&lt;/code&gt; is found in &lt;code&gt;&amp;lt;sdk folder&amp;gt;\components\libraries\crc16\crc16.c&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The function used for nrfutils.exe and nRFgo Studio is &lt;code&gt;calc_crc16()&lt;/code&gt;, which is &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/nordicsemi/dfu/crc16.py"&gt;published on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The functions are equivalent.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>