<?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 gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34447/app-gets-stuck-when-booted-from-bootloader-works-fine-without-bootloader---sdk15---0xcafebabe-in-registers</link><description>Hello, 
 I&amp;#39;m having a weird issue that I&amp;#39;m not sure how to debug. I have an app that I know works fine if programmed just with the softdevice. However, when I also program the bootloader, the app gets stuck when initializing the softdevice. I can&amp;#39;t see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 May 2019 18:11:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34447/app-gets-stuck-when-booted-from-bootloader-works-fine-without-bootloader---sdk15---0xcafebabe-in-registers" /><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/186261?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 18:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3a63e47-92e2-4743-a1e5-0ba389454a32</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;At least the setting about the use of bonding needs to be the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/186257?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 16:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f96047fb-bdb3-4c24-bd6d-cc19d6ed51cb</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;I hope you don&amp;#39;t mean that you have to have the same settings for the bootloader as the application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/135405?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 16:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b11156-f3e5-427b-b907-8e69ecda0903</guid><dc:creator>EarthLord</dc:creator><description>&lt;p&gt;Andy, I&amp;#39;m in the same situation. I don&amp;#39;t use &lt;span&gt;NRF_DFU_BLE_REQUIRES_BONDS at all in the app. What changes did you do exactly? Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/132431?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 15:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecb94dca-1d8e-45d4-8fbf-b65befd3f095</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Fixed it.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_DFU_BLE_REQUIRES_BONDS was set to 1 in the application but to 0 in the&amp;nbsp;bootloader. This was causing some required code not to be compiled and therefore it was hanging there.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/132430?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 14:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d367e15e-8f34-43ea-a4dc-857fea6cb067</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I have narrowed it down to this piece of code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	uint32_t err_code;
	ble_dfu_buttonless_init_t dfus_init = {
		.evt_handler = ble_dfu_evt_handler
	};

	// Initialize the async SVCI interface to bootloader.
	err_code = ble_dfu_buttonless_async_svci_init();
	APP_ERROR_CHECK(err_code);

	if (err_code == NRF_SUCCESS) {
		err_code = ble_dfu_buttonless_init(&amp;amp;dfus_init);
		APP_ERROR_CHECK(err_code);
	} else {
		debug_error(&amp;quot;Bootloader not found&amp;quot;);
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Somewhere there it gets stuck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/132429?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 14:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6702fdf7-32b2-4b2d-88f9-c853765fc2fb</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The PC address looks like it&amp;#39;s in the DFU code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/132425?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 14:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b1a7604-7163-41fc-bd6b-cf13f6f3fba1</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I don&amp;#39;t understand what you mean. I flashed the softdevice and the bootloader as usual with nrfjprog and a JLink. Then I did a DFU with NRF Connect for iOS. I can see that the bootloader is indeed jumping to the app because I&amp;#39;m getting a little bit of RTT output from the app, then it stops and I don&amp;#39;t see anything anymore.&lt;/p&gt;
&lt;p&gt;What makes you think the bootloader never jumps to the app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers</title><link>https://devzone.nordicsemi.com/thread/132424?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 14:24:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68de2d8e-0862-4226-9cba-6af2dac97655</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;How did you flash the DFU and your firmware ? It looks like DFU never jump to your firmware. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;To debug your firmware with DFU, first upload your firmware using DFU. &amp;nbsp;Then you can refresh firmware for debugging with Eclipse. &amp;nbsp;Important that the binary of your firmware must be the same in both cases. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App gets stuck on softdevice initialization when booted from bootloader (works fine without bootloader) - SDK15</title><link>https://devzone.nordicsemi.com/thread/132422?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 14:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e631d1f2-032c-4646-b226-12b217201b58</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I&amp;#39;m no longer sure about where the program is getting stuck, but I looked at the registers by halting the processor after it gets stuck and they read this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PC = 0007763E, CycleCnt = 3C7E5A37
R0 = 00000064, R1 = 0007763F, R2 = CAFEBABE, R3 = CAFEBABE
R4 = 00000204, R5 = 00000000, R6 = 20004158, R7 = 00000000
R8 = 00000003, R9 = 00000003, R10= 0004314A, R11= 2000FF94
R12= 00000000
SP(R13)= 2000FF58, MSP= 2000FF58, PSP= 00000000, R14(LR) = FFFFFFF9
XPSR = 21000019: APSR = nzCvq, EPSR = 01000000, IPSR = 019 (INTISR10)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How can I use that information to figure out what&amp;#39;s going on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>