<?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 xxAC RTC problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49394/nrf51822-xxac-rtc-problem</link><description>Hi everyone. 
 I have problem with my device. I use Visual studio with visual GDB and I&amp;#39;m trying to use interrupts from RTC. Got from this site lot of examples and wrote some function but when i try to compile I have few Errors. But all of them ale same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jul 2019 17:12:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49394/nrf51822-xxac-rtc-problem" /><item><title>RE: nRF51822 xxAC RTC problem</title><link>https://devzone.nordicsemi.com/thread/199876?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 17:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67b47a8f-4e12-4994-986b-72138b477f35</guid><dc:creator>Rafaello</dc:creator><description>&lt;p&gt;Hi, I don&amp;#39;t use app_timer, I dont know why I have this file.&lt;/p&gt;
&lt;p&gt;I deleted this and everything works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 xxAC RTC problem</title><link>https://devzone.nordicsemi.com/thread/199704?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 09:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a383a6-8270-439b-9696-cec7430356ef</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The nRF51822 has 2 RTCs, RTC0 and RTC1. Typically, the Softdevice uses RTC0, and the app_timer uses RTC1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using the app_timer as well in your project? If so, both of your RTCs are already in use. If you are not using the app_timer, you can remove the app_timer files, and you should be good to go.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are using the app_timer, I suggest that you try to use this to what you are trying to use the RTC1 for.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 xxAC RTC problem</title><link>https://devzone.nordicsemi.com/thread/197050?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 09:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71468c82-ef2b-45d9-a1ce-741783bbd227</guid><dc:creator>Rafaello</dc:creator><description>&lt;p&gt;Hi, I had both RTC0 and RTC1 ENABLED 0&amp;nbsp;&lt;br /&gt;So I changed RTC1 to ENABLED 1 like you show me. But this changed nothing.&amp;nbsp;&lt;br /&gt;Moreover I saw i had:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; RTC_ENABLED - nrf_drv_rtc - RTC peripheral driver
//==========================================================
#ifndef RTC_ENABLED
#define RTC_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So i changed it to ENABLED 1. Then error which I mentioned in previous post dissapierd.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But now i have this error:&lt;br /&gt;&lt;br /&gt;&amp;#39;multiple definition of &amp;#39;RTC1_IRQHandler&amp;#39; I found that i have 2 of them.&lt;br /&gt;One is in nrf_drv_rtc.c second in app_timer.c&lt;br /&gt;&lt;br /&gt;Can i delete one of them without any doubts?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 xxAC RTC problem</title><link>https://devzone.nordicsemi.com/thread/196781?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 09:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ffb4a5-d1ea-4d40-96ae-35f1b77b813b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you set the correct RTC settings in sdk_config.h?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;q&amp;gt; RTC0_ENABLED  - Enable RTC0 instance
 

#ifndef RTC0_ENABLED
#define RTC0_ENABLED 0
#endif

// &amp;lt;q&amp;gt; RTC1_ENABLED  - Enable RTC1 instance
 

#ifndef RTC1_ENABLED
#define RTC1_ENABLED 1
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Rafaello"]&amp;#39;RTC0_ENABLED&amp;#39; undeclared here (not in a function);&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;This is probably pointing to a place in your project. Where does it point? (try double clicking it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 xxAC RTC problem</title><link>https://devzone.nordicsemi.com/thread/196669?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 19:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7c97aee-23d6-4115-a4e2-37519db552d5</guid><dc:creator>Rafaello</dc:creator><description>&lt;p&gt;OK, I found out that I lost one line of code so i added it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;const  nrf_drv_rtc_t           rtc = NRF_DRV_RTC_INSTANCE(1); &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have to use RTC1 because RTC0 is reserved for Soft Device. But when i Compile this i have neew Errors:&lt;/p&gt;
&lt;p&gt;Error: use of undeclared identifier &amp;#39;RTC0_ENABLED&amp;#39;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&amp;#39;RTC0_ENABLED&amp;#39; undeclared here (not in a function);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using RTC1 so why this errors are about RTC0? and how to fix it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>