<?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>Uploading App using Keil uVision on preloaded SD+DFU BL?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45204/uploading-app-using-keil-uvision-on-preloaded-sd-dfu-bl</link><description>Hi 
 I have sd+dfu uploaded and can download app through dfu with no issues. But if I make any change to the app and try to upload app using Keil uVision then nrf52832 not jump to app. it stays at dfu. Is there any way to upload app through keil uVision</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Mar 2019 16:31:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45204/uploading-app-using-keil-uvision-on-preloaded-sd-dfu-bl" /><item><title>RE: Uploading App using Keil uVision on preloaded SD+DFU BL?</title><link>https://devzone.nordicsemi.com/thread/177904?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 16:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5370f3-f924-4c7f-99c3-8af782eb8058</guid><dc:creator>Wasil</dc:creator><description>&lt;p&gt;Thanks Einar. All sorted. Much appreciated.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading App using Keil uVision on preloaded SD+DFU BL?</title><link>https://devzone.nordicsemi.com/thread/177874?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 14:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7787dd19-8903-4203-bf49-88482531a5bd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For SDK 12 this is handled by the&amp;nbsp;nrf_dfu_app_is_valid() function in nrf_dfu_util.c. Just comment out everything related to CRC checking, like this (from 12.3):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bool nrf_dfu_app_is_valid(void)
{
    NRF_LOG_INFO(&amp;quot;Enter nrf_dfu_app_is_valid\r\n&amp;quot;);
    if (s_dfu_settings.bank_0.bank_code != NRF_DFU_BANK_VALID_APP)
    {
       // Bank 0 has no valid app. Nothing to boot
       NRF_LOG_INFO(&amp;quot;Return false in valid app check\r\n&amp;quot;);
       return false;
    }

    // If CRC == 0, this means CRC check is skipped.
    // if (s_dfu_settings.bank_0.image_crc != 0)
    // {
    //     uint32_t crc = crc32_compute((uint8_t*) CODE_REGION_1_START,
    //                                  s_dfu_settings.bank_0.image_size,
    //                                  NULL);

    //     if (crc != s_dfu_settings.bank_0.image_crc)
    //     {
    //         // CRC does not match with what is stored.
    //         NRF_LOG_INFO(&amp;quot;Return false in CRC\r\n&amp;quot;);
    //         return  false;
    //     }
    // }

    NRF_LOG_INFO(&amp;quot;Return true. App was valid\r\n&amp;quot;);
    return true;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading App using Keil uVision on preloaded SD+DFU BL?</title><link>https://devzone.nordicsemi.com/thread/177869?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 14:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97d7dedf-fc7a-42c5-b6bf-501385991120</guid><dc:creator>Wasil</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am using bootloader sdk-v12 and &lt;span&gt;dfu_enter_check() is not in nrf_bootloader.c. Can you point me for disabling CRC on sdk v12?&amp;nbsp;&lt;/span&gt;Thanks&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><item><title>RE: Uploading App using Keil uVision on preloaded SD+DFU BL?</title><link>https://devzone.nordicsemi.com/thread/177763?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 09:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1c5dfb4-f527-423c-bc60-35ad0cbfc22b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader will check the CRC of the application and compare with the CRC stored in bootloader settings. If the CRC is incorrect, it will enter DFU mode instead of starting the application.&lt;/p&gt;
&lt;p&gt;When you modify the application and program it via Keil (or any other method other than DFU for that matter), the CRC in the bootloader settings is not updated, and the bootloader will not start the application. There are a few ways to handle this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The obvious option is to program the application via DFU, since this causes the bootloader to update the CRC. This works, but is a bit time consuming, so I understand why you want to avoid it.&lt;/li&gt;
&lt;li&gt;You can also generate a new bootloader settings page using nrfutil and program it when you program the application. That way the new CRC match the new application.&lt;/li&gt;
&lt;li&gt;The simplest (and best in my opinion) approach is to modify the bootloader so that it does not check application CRC on startup. This makes much sense during development. You can do this easily by commenting out the CRC check in&amp;nbsp;dfu_enter_check() in nrf_bootloader.c.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>