<?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>stuck in this line</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12221/stuck-in-this-line</link><description>hi 
 im using one of SDK Example and it stuck in this line of code 
 // Initialize SoftDevice.
 SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_75_PPM, NULL);
 
 in this line my program stuck 
 i use nrf51422 and keil s130 BLE 
 and when in debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2016 08:21:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12221/stuck-in-this-line" /><item><title>RE: stuck in this line</title><link>https://devzone.nordicsemi.com/thread/46233?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 08:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a03545f-e02e-4cfa-9b20-c5618a476683</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I guess this question is related to &lt;a href="https://devzone.nordicsemi.com/question/69707/what-freq-for-softdevice-should-i-use/"&gt;your question yesterday&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The reason why SOFTDEVICE_HANDLER_INIT() hangs is almost always due to wrong clock source configuration. Make sure you follow @Kristin&amp;#39;s tips in the other thread. If you use an external oscillator you should also make sure that it is mounted properly (proper soldering and correct positioning). &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;Here is a great post&lt;/a&gt; on low frequency clock sources.&lt;/p&gt;
&lt;p&gt;The reason it hangs can also be that you use incompatible Softdevice and SDK. Make sure your comply with the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf51%2Fdita%2Fnrf51%2Fpdflinks%2Fnrf51_comp_matrix.html"&gt;Compatibility Matrix&lt;/a&gt;. If you don&amp;#39;t you can&amp;#39;t expect it to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>