<?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>bootloader cannot start app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26117/bootloader-cannot-start-app</link><description>HW: BMD-350 
 SDK: nRF5_SDK_12.0.0_12f24da 
 Sample Code: examples\dfu\bootloader_secure\pca10040_debug 
 I have my own firmware app. 
 Problem: 
 If I use Keil to flash bootloader, it can start the app. If I power off and then on, it cannot and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2017 04:46:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26117/bootloader-cannot-start-app" /><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102912?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 04:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dac4e7b6-be2b-4b29-8014-3dde6eb1a23e</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;&lt;strong&gt;I don&amp;#39;t see any reason why the bootloader can&amp;#39;t branch to application when power up but can when doing reset.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102910?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 07:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfb7e595-f544-4e31-b760-778ed5d3ecb9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could be some assertions occurred. You should check all the return code of each function and only continue if the return code is NRF_SUCCESS. Also when you enable a peripheral, make sure you have a loop to wait for the peripheral to be ready.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102908?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 02:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7fcaab-d3d9-4dc9-a65b-697fdabed9e3</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;yes, your are right.&lt;/p&gt;
&lt;p&gt;my app gets stuck at some initialization stage, most likely uart_init, which is the first function being called. If I add some delay before it, the app can be started.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102911?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 13:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae1cdaa-5502-4105-ae63-207aa671b06b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;How do you know that it&amp;#39;s stuck at nrf_bootloader_app_start_impl() ? if you simply couldn&amp;#39;t step through that when debugging then it&amp;#39;s normal. That function branch to application, you can&amp;#39;t step through that, or you can but the debugger woudn&amp;#39;t know the code in the application.&lt;/p&gt;
&lt;p&gt;What you can do is to try putting a notification when your application start, for example turn on an LED. Just to check if it&amp;#39;s branched to the application or not, or you can use debugger in your application to wait for the bootloader branch to the application.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any reason why the bootloader can&amp;#39;t branch to application when power up but can when doing reset.&lt;/p&gt;
&lt;p&gt;Could you check if it&amp;#39;s related to any peripherals on your board that can&amp;#39;t bootup quickly and may have a problem ?&lt;/p&gt;
&lt;p&gt;You can try to comment out part of your code, as you can see that normal application can boot without problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102909?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 03:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0392a674-bd6f-49f3-9518-4117058dbbef</guid><dc:creator>djqtsg</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;yes, I have no problem with the bootloader to do OTA. My app CAN be started as long as I don&amp;#39;t power off the device, which is made by us with BMD 350 and a few SPI, I2C sensors.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I have tried to test an app which I combined sample UART and DFU service into; and the bootloader is able to start it in the case power off and on.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102907?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 14:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb7e6545-8374-4b37-acdf-de8cf4344245</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please describe step by step how you tested.&lt;/p&gt;
&lt;p&gt;Especially how you flash your application. Have you used the bootloader to OTA your application ? If  you haven&amp;#39;t, please do.&lt;/p&gt;
&lt;p&gt;Have you tried to test with an SDK example as application ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader cannot start app</title><link>https://devzone.nordicsemi.com/thread/102906?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 08:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d579bbf-178a-43ce-9444-f452f5b75aa1</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;If I power on the device, bootloader cannot start my app; however, if I press reset button, it can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>