<?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>Nrf52 issue with RTC event running GPIOTE Task</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18967/nrf52-issue-with-rtc-event-running-gpiote-task</link><description>Hi, 
 I&amp;#39;m trying to simply toggle a pin with GPIOTE out toggle task from RTC2 CC0 event. Wrote up the following code and checked the registers in system viewer. Everything seems to check out but still not seeing the pin toggle. Any Ideas what I&amp;#39;m missing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jan 2017 11:47:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18967/nrf52-issue-with-rtc-event-running-gpiote-task" /><item><title>RE: Nrf52 issue with RTC event running GPIOTE Task</title><link>https://devzone.nordicsemi.com/thread/73311?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 11:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae3a036-9806-434d-ad83-c7f48284b424</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Is the frequency on the timer 32768 KHz?:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RTC2_CONFIG_FREQUENCY    32768
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I just tested your code and it works. You know that the pin will only toggle once (before the timer overflows)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 issue with RTC event running GPIOTE Task</title><link>https://devzone.nordicsemi.com/thread/73310?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 11:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1d0ddd-ecf2-4c58-be7b-a6efa2e9e96f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I was looking at SDK 12 and 13, I see that in SDK 11 it checks if the p_config is NULL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 issue with RTC event running GPIOTE Task</title><link>https://devzone.nordicsemi.com/thread/73309?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 15:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b3e7c4-ce0e-4e3e-8cbe-d29ea260c9ed</guid><dc:creator>labi</dc:creator><description>&lt;p&gt;I tried your workaround, but that didn&amp;#39;t work either. In nrf_drv_rtc_init() I see that its checking for the NULL parameter in SDK11 (see below). Perhaps you were looking at a different version of nrf_drv_rtc?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ret_code_t nrf_drv_rtc_init(nrf_drv_rtc_t const * const p_instance,
                        nrf_drv_rtc_config_t const * p_config,
                        nrf_drv_rtc_handler_t handler)
{
if (handler)
{
    m_handlers[p_instance-&amp;gt;instance_id] = handler;
}
else
{
    return NRF_ERROR_INVALID_PARAM;
}

if (p_config == NULL)
{
    p_config = &amp;amp;m_default_config[p_instance-&amp;gt;instance_id];
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 issue with RTC event running GPIOTE Task</title><link>https://devzone.nordicsemi.com/thread/73308?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 10:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881676cd-4eac-46de-b47a-8e15675a4bad</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I see that the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__nrf__drv__rtc.html#gaa07935008bf5b51ca478d3f5d1efa771"&gt;documentation&lt;/a&gt; says that the p_config parameter can be NULL to use the default config, but in the nrf_drv_rtc_init(..) function it does not seem to check if this is NULL and use the default config in that case. I will mark this as a bug internally.&lt;/p&gt;
&lt;p&gt;Can you check if the code works if you use &lt;code&gt;nrf_drv_rtc_config_t config = NRF_DRV_RTC_DEFAULT_CONFIG&lt;/code&gt; and pass this as the p_config parameter instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>