<?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 bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13985/dfu-bootloader---crc-always-0-always-accepted</link><description>Hi all, in the forum I can read about people having issues with wrong CRC in the bootloader, but with SDK11; I have the opposite problem. It is always 0 and is always accepted. If I program my application using the bootloader, then flash something else</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jun 2016 12:52:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13985/dfu-bootloader---crc-always-0-always-accepted" /><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53410?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 12:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23641127-179b-4a29-ac4e-16fae0cc4316</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Thanks to both. I will use Erik&amp;#39;s solution until then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53409?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 12:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe285cf-6168-4180-8ed3-9082ad80a938</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the input. I completely agree with you, and have already reported this as a feature request internally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53413?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 12:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49f129e3-03db-4474-952a-1eb41142741c</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;Maybe a #define could enable/disable it, or at least it could be commented in the code that m_image_crc is not in use. Now it looks like it is implemented, but actually its not in use. Gives kind of a false security. Also an application modifying its own image is not very safe and I don&amp;#39;t see why that sould be the default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53411?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 11:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7497dba9-7964-49e6-b4d3-3f239d5d20de</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;this is a deliberate choice made by the developers as some may want to change their application at runtime, but can be added for those that want additional safety.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53412?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 11:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82723e21-6e3e-41b7-9291-d87674d7d7e9</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Hello
Will the next SDK have this re-implemented?
Should this be added to &lt;a href="https://devzone.nordicsemi.com/question/71366/what-are-sdk-1100-known-issues/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53406?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 15:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2fe26f5-b528-44a4-8724-7a3308a4afb8</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Erik,&lt;/p&gt;
&lt;p&gt;Thanks for adding your solution!&lt;/p&gt;
&lt;p&gt;Cheers,
Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53408?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 11:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e8354c-9e8d-4e12-84dd-275ff3bd57ad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The CRC check of the application image on boot is disabled in the newer SDK examples ( .bank_0_crc is just set to &amp;#39;0&amp;#39; ). This is done in case the application needs to modify its own image in flash at runtime where having a CRC check would have caused any following startups to fail.&lt;/p&gt;
&lt;p&gt;But the application image will normally not be modified as user data is typically stored outside of the application image in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_memory.html?cp=5_0_0_4_3_1_3"&gt;&amp;#39;&lt;strong&gt;app data section&lt;/strong&gt;&amp;#39;&lt;/a&gt;. So unless the appliation is writing to its own flash area I think makes sense to add CRC check on startup as an extra safety measure. @Erik&amp;#39;s solution for adding it is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53407?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 07:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8825c0fc-ca74-4a78-b539-63baf4c9986c</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;Hi Darren, I updated the question with my solution. Cheers, Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader - CRC always 0, always accepted</title><link>https://devzone.nordicsemi.com/thread/53405?ContentTypeID=1</link><pubDate>Fri, 20 May 2016 23:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99b414bc-d8b6-40d9-8a25-199151bcb52c</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Erik,&lt;/p&gt;
&lt;p&gt;I noticed the exact same problem and was planning on posting a question about it.  Are you able to share your solution for review?&lt;/p&gt;
&lt;p&gt;Cheers,
Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>