<?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>App not starting after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76110/app-not-starting-after-dfu</link><description>Hi, 
 I am working on programming a bootloader to have DFU capabilities. I have been using the secure_bootloader_uart example for SDK 15.3.0. I have modified the code to send the firmware image to the onboard external memory, and once validated, it would</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jun 2021 09:04:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76110/app-not-starting-after-dfu" /><item><title>RE: App not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/314401?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 09:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b3a6fcc-e2df-4da3-b4b8-b80416093374</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Amarin,&amp;nbsp;&lt;br /&gt;Have you flashed the MBR at address 0x0000&amp;nbsp; ? Do you use the softdevice ?&amp;nbsp;&lt;br /&gt;And have you configure your application so that its start address is 0x1000 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When booting the MBR will jump to the bootloader and the bootloader will execute the application. Have you tried to debug the bootloader and check if it runs and then jump to the application at address 0x1000 ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/314278?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 16:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f67ada2-a328-4f97-a2aa-613b00b26999</guid><dc:creator>amarin</dc:creator><description>&lt;p&gt;I used 0x00001000 for my new address. In debug, I cannot jump into the app code. I am able to step all the way until it resets to start the application. During all of those steps, the values are consistent with what I was expecting. I have tried just blinking an led in my app and it does not blink after the dfu.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/314268?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 15:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e45c4f-9f64-4337-8b36-7d5c105449e5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you let me know the custom address you used ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;You mentioned that when running in debug , everything was correct , does that mean you can debug the application and step into the code ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;You may want to check if the bootloader actually jump to the application after booting. Have you tried to just blink an LED inside your app ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/314260?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 15:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02bcd64c-5891-44ca-888e-718c9413b78d</guid><dc:creator>amarin</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I just tried running the IDE in debug mode after I do a DFU update and found everything to be correct. The start address looks to be starting at the new custom address and the flash code is the same as the code copied into the external memory after using the code &amp;quot;nrfjprog --readcode&amp;quot;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To make sure that it is just my code, I ran the unmodified example/dfu/secure_bootloader_uart/ project and tried to do a dfu with the bsp_pca10056 packet and found that the same thing that happens with my code is happening to the unmodified code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/314247?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 14:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d09e2a0-95b7-4a55-892d-cf8da7df6e47</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Amarin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to run the IDE in debug mode and step into the code of the application (after you do DFU update)&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the start address of the image you copy into the nRF5 chip is not 0x00000000 you need to configure the start address of the application to match the custom start address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you simply modify the code of the bsp example so that it blink an LED would it work ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What else you can do is to read the flash content of your chip after you do DFU update with &amp;quot;nrfjprog --readcode &amp;quot; you then can compare the hex with the hex content when you simply write the bsp example into flash using a programmer. I usually use Notepad ++ to compare hex files.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>