<?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>NRF 51822, RTC 0 or RTC 1 together with BLE.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53135/nrf-51822-rtc-0-or-rtc-1-together-with-ble</link><description>Good afternoon. I use NRF 51822, and I want to use RTC 0 or RTC 1. But there are problems, if I do not initialize BLE then the compiler does not execute LFCLK_config because of #ifndef SOFTDEVICE_PRESENT. If I get around this, interruptions cease to occur</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Oct 2019 12:50:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53135/nrf-51822-rtc-0-or-rtc-1-together-with-ble" /><item><title>RE: NRF 51822, RTC 0 or RTC 1 together with BLE.</title><link>https://devzone.nordicsemi.com/thread/214610?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 12:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b5506cb-39cd-4259-9782-41a21ac530d0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear that you found a solution. Thanks for updating the case. Another alternative that you may consider as well is to keep the Softdevice enabled even if you don&amp;#39;t need it, but just stop any ongoing&amp;nbsp; BLE advertising to prevent connections. The Softdevice will leave the LF clock running. Though you will need to disable the Softdevice to access RTC0.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF 51822, RTC 0 or RTC 1 together with BLE.</title><link>https://devzone.nordicsemi.com/thread/214559?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 10:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33f905e6-b403-449c-973f-2d3f03e080bd</guid><dc:creator>Tails2</dc:creator><description>&lt;p&gt;I solved the problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static void lfclk_config(void)&lt;br /&gt;{&lt;br /&gt; nrf_clock_xtalfreq_set(CLOCK_CONFIG_XTAL_FREQ);&lt;br /&gt; nrf_clock_lf_src_set((nrf_clock_lf_src_t)CLOCK_CONFIG_LF_SRC);&lt;br /&gt; nrf_drv_common_irq_enable(POWER_CLOCK_IRQn, 3);&lt;br /&gt; __disable_irq(); &lt;br /&gt; *((volatile uint32_t *)((uint8_t *)NRF_CLOCK + NRF_CLOCK_TASK_LFCLKSTART)) = NRF_CLOCK_TASK_TRIGGER;&lt;br /&gt; nrf_task_triger((uint32_t*)NRF_CLOCK,NRF_CLOCK_TASK_LFCLKSTART);&lt;br /&gt; __enable_irq();&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>