<?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>Setting LFCLK gives hardfault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3699/setting-lfclk-gives-hardfault</link><description>Description of my system: 
 Hardware:nRF51822, pca10001 
 Software: SDK5.20, S120 
 If i first call the function ble_stack_init(); and then i open the LFCLK first by set 
 NRF_CLOCK-&amp;gt;LFCLKSRC = 1;
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
 
 the program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Sep 2014 14:57:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3699/setting-lfclk-gives-hardfault" /><item><title>RE: Setting LFCLK gives hardfault</title><link>https://devzone.nordicsemi.com/thread/13418?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 14:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07dca4ee-159d-47dd-8916-0845541598ad</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;You shouldn&amp;#39;t try to start lfclk manually after calling ble_stack_init() because when you call ble_stack_init() it&amp;#39;ll call SOFTDEVICE_HANDLER_INIT() that will start lfclk and then softdevice will block all access from your application to lfclf settings.&lt;/p&gt;
&lt;p&gt;Describe your problem with sd_nvic_SetPriority()/sd_nvic_EnableIRQ() in more detail, what are you trying to do and when you getting HardFault.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>