<?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>nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48131/nrf52832---sdk-15-3---rtc-example-dummy_handler-loop</link><description>Hi all, 
 I am using the nRF52832 and Segger Studio for developing a project. 
 My code is based on saadc, spi and rtc examples from 15.3 SDK. The saadc and spi work fine but when I use the code of the rtc example, especifically when I execute &amp;quot; nrf_drv_clock_lfclk_request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jun 2019 16:08:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48131/nrf52832---sdk-15-3---rtc-example-dummy_handler-loop" /><item><title>RE: nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/thread/190887?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 16:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c4370e-6cea-44c7-927f-e3f4e1a430a9</guid><dc:creator>Joaquim</dc:creator><description>&lt;p&gt;Yes, both.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/thread/190877?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 15:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5030da4f-f7ac-41ac-ae27-c398aa2b1df6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was looking at SDK 15.2.0, sorry. Have you included both nrf_drv_clock.c and nrftx_clock.c in your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/thread/190866?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 15:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6ef1ab-86f5-4ca7-8c22-d361b5d1a681</guid><dc:creator>Joaquim</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I only have nrfx_power_clock.h header file. I can&amp;#39;t found the .c source in SDK nRF5_SDK_15.3.0_59ac345 version, which I use, but in the&amp;nbsp;nRF5_SDK_15.0.0_a53641a it is...&lt;/p&gt;
&lt;p&gt;I have copied it and I get an error when compiling &amp;quot;undefined reference to `nrfx_power_irq_handler&amp;#39;&amp;quot;. I had defined POWER_ENABLED macro but without configuring the driver and including the .c. This is why I could compile without errors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I disable power macro, RTC works fine.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/thread/190859?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 15:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e8c415-8522-4602-a39a-f43ff37ac043</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the additional info. The problem is likely that the POWER_CLOCK_IRQHandler is not defined. Have you included nrfx_power_clock.c in your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/thread/190809?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 14:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4cf5c59-ae5a-4a96-97c2-e602fc7ca2fe</guid><dc:creator>Joaquim</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Please, find attached CPU and others registers.&lt;/p&gt;
&lt;p&gt;I have done some changes (I use RTC1 and LF is XTAL) and now RTC is generating some interrupt under these conditions;&lt;/p&gt;
&lt;p&gt;RTC1&lt;/p&gt;
&lt;p&gt;Prescaler = 4095.&lt;/p&gt;
&lt;p&gt;Channel compare = 0.&lt;/p&gt;
&lt;p&gt;Compare counter time = 1, 2 or 3.&lt;/p&gt;
&lt;p&gt;If compare counter time is 1 (rtc feq 125ms) RTC handler is executed 2 times. If counter is 2, rtc handler is executed 1 time, and for 3 or more times no execution. Then my code goes to dummy handler.&lt;/p&gt;
&lt;p&gt;In the rtc handler I set the counter compare time and counter clear as below:&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;void rtc_handler(nrf_drv_rtc_int_type_t int_type)&lt;br /&gt;{&lt;br /&gt;uint32_t err_code;&lt;/p&gt;
&lt;p&gt;if (int_type == NRF_DRV_RTC_INT_COMPARE0)&lt;br /&gt; {&lt;br /&gt; EventsApp.RTC |= Event_RTC_Timeout;&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_rtc_cc_set(&amp;amp;rtc, 0, COMPARE_COUNTERTIME, true); //Set RTC compare value. This needs to be done every time as the nrf_drv_rtc clears the compare register on every compare match&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;nrf_drv_rtc_counter_clear(&amp;amp;rtc); &lt;br /&gt; }&lt;br /&gt; else if (int_type == NRF_DRV_RTC_INT_TICK)&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CPU-register.txt"&gt;devzone.nordicsemi.com/.../CPU-register.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 - SDK 15.3 - RTC example: Dummy_Handler loop</title><link>https://devzone.nordicsemi.com/thread/190774?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 12:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80c14e1-9df3-413c-b9fb-6389e2ba7be7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t find the CPU registers in your attachment. I&amp;#39;m interested in the xPSR register when you have entered the dummy handler. The last bits tell us the ISR number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>