<?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>Using rtc driver with SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13264/using-rtc-driver-with-softdevice</link><description>Hi, 
 i am trying to start a RTC0 on nrf52 DK with SoftDevice (s132) enabled with project based on &amp;quot;ble_app_template&amp;quot;. The problem is that a sd_softdevice_enable() (called in main -&amp;gt; ble_stack_init() -&amp;gt; SOFTDEVICE_HANDLER_INIT()) returns NRF_ERROR_INVALID_STATE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 16 Apr 2016 18:32:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13264/using-rtc-driver-with-softdevice" /><item><title>RE: Using rtc driver with SoftDevice</title><link>https://devzone.nordicsemi.com/thread/50570?ContentTypeID=1</link><pubDate>Sat, 16 Apr 2016 18:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6f844ed-0a4b-4c4d-b8c3-7bb08489af31</guid><dc:creator>Konstantin</dc:creator><description>&lt;p&gt;Thanks for the fast reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already tried to use other RTC instances with same result. But now i think it is because my first attempt to use the RTC0 instance (i really forget this SoftDevice requirement, because i certainly know that RTC1 occupied by app_timer.c realization). I will try to use RTC2 again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using rtc driver with SoftDevice</title><link>https://devzone.nordicsemi.com/thread/50569?ContentTypeID=1</link><pubDate>Sat, 16 Apr 2016 11:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63308b0-d463-4061-a636-d3ca0585e28a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You can&amp;#39;t use RTC0, the softdevice uses it for its timing. See table 4, section 8.1 of the softdevice 132 specification to see what peripherals the softdevice claims for itself.&lt;/p&gt;
&lt;p&gt;So start by fixing your code to use a different RTC instance and see if you get any further.&lt;/p&gt;
&lt;p&gt;Also the documentation for NRF_ERROR_INVALID_STATE says that you get that when the softdevice is already enabled. So it is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>