<?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>Unable to get RTC1 counter value during runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78862/unable-to-get-rtc1-counter-value-during-runtime</link><description>USING RTC1 for app timer library. 
 Using windows 10 OS, and SES v5.40. 
 I am using nRF52833 device in my project along with nRF5_SDK_for_Thread_and Zigbee_v4.1.0_32ce5f8 SDK. There is RTC0 
 Trying to get RTC 1 counts through this library function TIMEAPI_RtcGetCounter_U32</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Oct 2021 05:05:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78862/unable-to-get-rtc1-counter-value-during-runtime" /><item><title>RE: Unable to get RTC1 counter value during runtime</title><link>https://devzone.nordicsemi.com/thread/334027?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 05:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135e03be-f566-4279-9f9f-9db07da4eb58</guid><dc:creator>Abhijith.Desai</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;Thanks for your reply on this.&lt;/p&gt;
&lt;p&gt;Yes we could print the peripheral registers creating a loop. and i also found some feature where we could force view the value of specific register using a breakpoint and then stepping over the particular instruction also gives the real time value of that register.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Abhijith Desai&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to get RTC1 counter value during runtime</title><link>https://devzone.nordicsemi.com/thread/330977?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 07:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ada4c30-07f8-4a6b-bd38-9c0a40faf398</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad to hear you resolved the initial issue.&lt;/p&gt;
&lt;p&gt;Unfortunately, the only way to see if individual peripheral is active is to see its register, and for the debugger to read the peripheral register it needs to halt the CPU. A power analyzer or the clock can be used to give overall information, but not information on which specific peripherals are on.&lt;/p&gt;
&lt;p&gt;You could possibly create a polling function that could print some of the peripheral registers, for debugging purposes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to get RTC1 counter value during runtime</title><link>https://devzone.nordicsemi.com/thread/330845?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d2d1c7-a4e7-4336-a078-cde8b905d225</guid><dc:creator>Abhijith.Desai</dc:creator><description>&lt;p&gt;Hi simonr,&lt;/p&gt;
&lt;p&gt;We are able to include app_timer2.c(newer version) to the project and now the problem that we had is solved and also got to know that RTC1 is automatically controlled using app timer itself and no need to enable in SDK_config.h..&lt;/p&gt;
&lt;p&gt;But still i dont get one thing :&lt;/p&gt;
&lt;p&gt;1. Dont we have any real time feature in SES to watch which periphers are currently active.&lt;/p&gt;
&lt;p&gt;2. The current registers view can only show the state of peripherals only when halted.&lt;/p&gt;
&lt;p&gt;I want to know this because we are working around the power measurements, and we see that some process in ADC or comparator is running even during sleep(system on mode) need to see which peripheral is creating that issue.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to get RTC1 counter value during runtime</title><link>https://devzone.nordicsemi.com/thread/326208?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 13:28:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b97b8de1-e9e3-4ce2-be29-44ddfbd63e29</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;RTC1 is used in the app_timer library by default. To prevent it from being compiled/linked you need to remove the source file (app_timer.c) from your project or disable app_timer in your sdk_config.h file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; APP_TIMER_ENABLED - app_timer - Application timer functionality
//==========================================================
#ifndef APP_TIMER_ENABLED
#define APP_TIMER_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please note that the app_timer might be used by other library modules in your app/example, but then you&amp;#39;ll get&amp;nbsp;&lt;em&gt;undefined reference errors&amp;nbsp;&lt;/em&gt;when trying to remove it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>