<?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 application and Secure DFU bootloader   : application not starting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50269/uploading-application-and-secure-dfu-bootloader-application-not-starting</link><description>MY CHIP is NRF52840, EVB is PCA10056 
 SDK: nRF5_SDK_15.0.0_a53641a 
 bootloader use secure DFU example: \nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10056_ble 
 use IDE:Keil 5 MDK ARM 
 looklike this subject: https://devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jul 2019 07:41:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50269/uploading-application-and-secure-dfu-bootloader-application-not-starting" /><item><title>RE: Uploading application and Secure DFU bootloader   : application not starting</title><link>https://devzone.nordicsemi.com/thread/200892?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 07:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed1c28b-5d62-4851-8c86-7f5f94a904d3</guid><dc:creator>NRF52MCU</dc:creator><description>&lt;p&gt;Thank&amp;nbsp; for your answer.&lt;/p&gt;
&lt;p&gt;I success solve this problem,but&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uploading application and Secure DFU bootloader   : application not starting</title><link>https://devzone.nordicsemi.com/thread/200767?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 12:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e0e1238-cbb8-4d7e-bb4e-7c8f7c0edac4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]After uploading hex file to DK, although there is application hex file in memory,my DK is still in DFU mode.[/quote]
&lt;p&gt;&amp;nbsp;Yes. This is because the application that is now programmed in the flash doesn&amp;#39;t have a matching CRC, so the bootloader will not accept it as a valid application, and hence enter DFU mode.&lt;/p&gt;
&lt;p&gt;When you update an application via DFU, the DFU image is signed with the private key. The bootloader will receive this signed image, and see that the calculated CRC matches the CRC in the init packet of the dfu image, and store this in the bootloader settings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if you don&amp;#39;t have any bootloader settings, the application will never be accepted as a valid application, and it will enter dfu mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can generate the DFU settings using nrfutil:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_settings_generate_display.html&amp;amp;cp=6_5_6"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_settings_generate_display.html&amp;amp;cp=6_5_6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And then merge these settings with your application, bootloader and softdevice, and it should accept the application instead of booting up in DFU mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>