<?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>RTC instances available</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103225/rtc-instances-available</link><description>Good morning 
 I use the RTC timer instance 0 with this line 
 const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(0); /**&amp;lt; Declaring an instance of nrf_drv_rtc for RTC0. */ 
 if I replace 0 with 1 it does not build the application. 
 The sdk_config.h has</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Aug 2023 19:45:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103225/rtc-instances-available" /><item><title>RE: RTC instances available</title><link>https://devzone.nordicsemi.com/thread/443458?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 19:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9059a814-b241-4efd-879b-b9fb9980bf67</guid><dc:creator>pietrodcs</dc:creator><description>&lt;p&gt;Hei&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank You for coming here.&lt;br /&gt;I cannot say I understand fully the picture, but following the suggestion I managed to build with all timer available.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Pietro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC instances available</title><link>https://devzone.nordicsemi.com/thread/443389?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 13:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e9421c-5203-4c30-aba1-94d28021614f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since you are using the legacy driver API (&lt;span&gt;NRF_DRV_RTC) to control&amp;nbsp;the driver, you also needs to configure the driver using the legacy config macros in your sdk_config.h file. Try setting these:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&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

// &amp;lt;q&amp;gt; RTC2_ENABLED  - Enable RTC2 instance
 

#ifndef RTC2_ENABLED
#define RTC2_ENABLED 0
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The NRX_RTCx_ENABLED config macros will be overwritten in &amp;quot;apply_old_config.h&amp;quot; if the legacy configs are&amp;nbsp;&lt;em&gt;defined&lt;/em&gt; in your sdk_config.h file, regardless of their value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>