<?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>SDKv15.2.0  Problem With nrf_dfu_app_is_valid()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39657/sdkv15-2-0-problem-with-nrf_dfu_app_is_valid</link><description>I&amp;#39;m using SDKv15.2.0 
 I think there is a problem in nrf_dfu_app_is_valid() in components/libraries/bootloader/dfu/nrf_dfu_utils.c 
 If the CRC check fails, the return value should be false, not NRF_DFU_DEBUG which evals to true and which would indicate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Oct 2018 07:16:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39657/sdkv15-2-0-problem-with-nrf_dfu_app_is_valid" /><item><title>RE: SDKv15.2.0  Problem With nrf_dfu_app_is_valid()</title><link>https://devzone.nordicsemi.com/thread/153968?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 07:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5f5764-24e7-4a0c-aff3-6ced78290ff3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Warren,&lt;/p&gt;
&lt;p&gt;I see. Glad you found the problem, issues like these can be difficult to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv15.2.0  Problem With nrf_dfu_app_is_valid()</title><link>https://devzone.nordicsemi.com/thread/153857?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 14:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98070eef-e55d-4902-b850-64e25f11803e</guid><dc:creator>wc4765</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for the reply and clarification.&amp;nbsp; I wondered if that was the intended behavior.&lt;/p&gt;
&lt;p&gt;My use case was built with NRF_DFU_DEBUG_VERSION and had no valid application present when I was testing and caused this issue for me.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Warren&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv15.2.0  Problem With nrf_dfu_app_is_valid()</title><link>https://devzone.nordicsemi.com/thread/153746?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 07:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c5b2c3f-8df1-4c1e-895b-942c9be3b387</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it is correct that it should return false. However, this is actually intended behavior -&amp;nbsp;the debug version of the bootloader will ignore CRC mismatch in order to simplify debugging during development&amp;nbsp;. E.g. you don&amp;#39;t have to update the CRC value in bootloader settings every time you re-compile the application code.&amp;nbsp;The release version (built without&amp;nbsp;&lt;span&gt;NRF_DFU_DEBUG_VERSION)&lt;/span&gt;&amp;nbsp;&amp;nbsp;will set&amp;nbsp;&lt;span&gt;NRF_DFU_DEBUG to &amp;quot;false&amp;quot; and therefore return false in case the CRC is invalid.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>