<?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>SDK 15.3 : Flash application does not run after flash softdevice and bootloader as advised on Devzone topics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51265/sdk-15-3-flash-application-does-not-run-after-flash-softdevice-and-bootloader-as-advised-on-devzone-topics</link><description>Target : NRF52832, SD S132 6.1.1. program on Eclipse. 
 
 Hello, 
 Intro : 
 I migrated to SDK 15.3 for my application and it works. 
 Then I migrated DFU to SDK15.3 too but does not work fine. 
 We would like to be able to do updates of app via BLE.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Aug 2019 11:50:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51265/sdk-15-3-flash-application-does-not-run-after-flash-softdevice-and-bootloader-as-advised-on-devzone-topics" /><item><title>RE: SDK 15.3 : Flash application does not run after flash softdevice and bootloader as advised on Devzone topics</title><link>https://devzone.nordicsemi.com/thread/205577?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a330606a-b396-4322-b037-799b4fbd5315</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;After that, I flash the app and it does not run and I still see DfuTarg. I tried to delete --&lt;span&gt;sectorerase&amp;nbsp;from makefile for flash application but still the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I guess that --sectorerase&amp;nbsp;should only erase the pages of application i.e from 0x00026000 to 0x00049000 (in my case).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It stays stuck in Dfu mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Questions :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#1 : Are there any parameter missing to start app?&amp;nbsp;Can the bootloader not be able to find the start address of the app ? What could it be else ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It depends on what is in the flash before you flash your application and bootloader on the other places than where the bootloader and application are.&lt;/p&gt;
&lt;p&gt;Try to run &amp;quot;nrfjprog --eraseall&amp;quot; first, so that you know you start with a blank flash.&lt;/p&gt;
&lt;p&gt;Another thing: The bootloader uses a CRC check to verify the application. That it was transferred via DFU, and not inserted by someone else. So either you need to update the application via DFU, or you need to also program the bootloader settings to match the CRC of the application. You can generate bootloader settings like &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;. Then you program it like you program the bootloader and application:&lt;/p&gt;
&lt;p&gt;nrfjprog --program bootloader_settings.hex.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#2 The MBR should be backwards compatible. The MBR is part of the softdevice, but is never changed during DFU. Also, it doesn&amp;#39;t change between softdevices. Try #1 solution first, and we can look into the MBR stuff if that doesn&amp;#39;t work.&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>