<?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>nrf51822 rtc with softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28820/nrf51822-rtc-with-softdevice</link><description>Hello, 
 Is there a demo project that contains RTC function with softdevice.
I called the lfclk_config() and rtc_config() function before softdevice initial in main(), but it could not pass through SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL). How can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Dec 2017 10:48:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28820/nrf51822-rtc-with-softdevice" /><item><title>RE: nrf51822 rtc with softdevice</title><link>https://devzone.nordicsemi.com/thread/114142?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 10:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952e9c8b-1cdc-4230-93cc-c87e1fd2b3c0</guid><dc:creator>vernon</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply, I will use a app_timer to fulfill the rtc function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 rtc with softdevice</title><link>https://devzone.nordicsemi.com/thread/114141?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 10:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4383f44b-cd32-42d3-829b-5ed00213ed5e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi Vernon. The nRF51 only has two RTCs. The nRF52832 and nRF52840 have 3 RTCs.&lt;/p&gt;
&lt;p&gt;In your case it should be possible to use the RTC driver in the SDK, but if you want to use RTC1 in your own way you cannot use the app_timer library at the same time. Have a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/rtc_example.html?cp=4_0_5_4_5_28"&gt;RTC&lt;/a&gt; example in the SDK. If you use a Softdevice, then make sure to use instance 1 of the RTC with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(1); /**&amp;lt; Declaring an instance of nrf_drv_rtc for RTC1. */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 rtc with softdevice</title><link>https://devzone.nordicsemi.com/thread/114140?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2017 06:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a235e57-d98f-40d2-b317-05eb8cdd7b5d</guid><dc:creator>vernon</dc:creator><description>&lt;p&gt;Hello Ole Saeher,
thanks a lot for your answer, I have found that nrf51822 just has RTC0 and RTC1 defined in C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51822_peripherals.h,  RTC0 is used by the SoftDevice, and RTC1 by the app_timer library, so nrf51822 don&amp;#39;t support RTC2? If I want to achieved a calendar, is it only app_timer could help to achieved that without an external RTC chip?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 rtc with softdevice</title><link>https://devzone.nordicsemi.com/thread/114139?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 12:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e286447e-fb9a-43ae-a3b0-d4fece251c09</guid><dc:creator>Ole Saether</dc:creator><description>&lt;p&gt;Check the file &lt;code&gt;counter.c&lt;/code&gt; in the example project &lt;code&gt;ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput&lt;/code&gt;in nRF5_SDK_12.2 on how to configure and use RTC2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>