<?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>firmware hangs in softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3094/firmware-hangs-in-softdevice</link><description>Hi, 
 I am using softdevice 6.0.0 and ble_app_hrs example in keil on a custom nRF51822 board. Compilation goes fine but when I try to debug I notice that the firmware seems to be hanging in the softdevice (WFE instruction) and execution never reaches</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 12 Jul 2014 12:43:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3094/firmware-hangs-in-softdevice" /><item><title>RE: firmware hangs in softdevice</title><link>https://devzone.nordicsemi.com/thread/11498?ContentTypeID=1</link><pubDate>Sat, 12 Jul 2014 12:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c0ea763-ebad-4ef8-bfac-2f9fd5b72786</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You are welcome. Unfortunately I do not have the knowledge to help you with your current hurdle. Hopefully someone answers the other question you opened on the error code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware hangs in softdevice</title><link>https://devzone.nordicsemi.com/thread/11497?ContentTypeID=1</link><pubDate>Sat, 12 Jul 2014 07:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:213cb550-365e-4fa6-b91a-d447ab15e0d8</guid><dc:creator>George</dc:creator><description>&lt;p&gt;Thanks John ..yes changing the start address to 0x14000 solves the issue.&lt;/p&gt;
&lt;p&gt;As you say clearly the start address needs to be 0x14000 so I&amp;#39;m not understanding why the Keil examples provided with the SDK are set to compile with start address 0x16000 (?)&lt;/p&gt;
&lt;p&gt;Thanks Hugh ..yes that is the only change I did as well.&lt;/p&gt;
&lt;p&gt;Now the firmware is jumping properly into the application section but still I have a problem. The ble_app_hrs example is failing when sd_ble_enable(&amp;amp;ble_enable_params) is called. This function is returning error code 5 ..(NRF_ERROR_NOT_FOUND  right?).&lt;/p&gt;
&lt;p&gt;Commenting the following APP_ERROR_CHECK line allows the program to proceed through the rest of the firmware without any other error but of course nothing works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware hangs in softdevice</title><link>https://devzone.nordicsemi.com/thread/11496?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2014 19:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9492fc7a-47b4-4bc6-a2ad-3d38c7371a80</guid><dc:creator>Hugh</dc:creator><description>&lt;p&gt;As John points out, the lower application address is 0x14000; the only other change we made for successful operation was the following (which I think you made):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;   // Initialize the SoftDevice handler module.
   #if defined(BOARD_PROTO_1)
      // Note no 32kHz crystal on the Fujitsu module
      SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false);
   #else
      SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
   #endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware hangs in softdevice</title><link>https://devzone.nordicsemi.com/thread/11495?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2014 12:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0adda9c2-90ce-4ab7-a00f-dd9e6bbde4c9</guid><dc:creator>John</dc:creator><description>&lt;p&gt;With SDS 6.0.0 shouldn&amp;#39;t the application start at 0x14000 rather than 0x16000?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>