<?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>APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts</link><description>I am using SDK 17.1.0 with an nRF52832 design similar to the P10040. 
 I was previously using the original timer application and things were looking good. I decided to upgrade to SDK 17.1.0 and am using the uart example under &amp;#39;ble_peripherals&amp;#39; to boot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jun 2022 12:47:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts" /><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/372147?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 12:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f94e15e-0bbb-4594-acb6-ca9e813c462a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello RVM,&lt;br /&gt;&lt;br /&gt;I am glad to hear that this seems to resolve your issue - please do not hesitate to let us know if testing proves otherwise.&lt;br /&gt;I will mark the ticket as &amp;#39;closed&amp;#39; as requested, but you can re-open it at any time if it should be necessary.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/371515?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 22:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec3d2181-a4e7-4bd3-96a3-bb3209bdc72d</guid><dc:creator>RVM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts/370791#370791"]&lt;p&gt;I have discussed this with some colleagues and I think it comes down to that you will have to make sure that the LFCLK start task is triggered regardless of the WDT status.&lt;br /&gt;You could for example do this through the HAL layer directly:&lt;br /&gt;&lt;/p&gt;&lt;div class="evolution-code-editor theme-clouds"&gt;&lt;a href="#" class="fullscreen"&gt;Fullscreen&lt;/a&gt;&lt;div style="width:100%;height:42px;" class=" ace_editor ace-clouds"&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;I have tried this briefly and it seems to work -- time will tell how robust this is going to be.&lt;/p&gt;
&lt;p&gt;I will mark this as &amp;#39;answered&amp;#39;.&amp;nbsp; Please feel free to close this ticket.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RVM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/370791?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 06:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3461b8-fb2d-4915-8fc8-856aef26a701</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, RMV&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user="RMV"]FYI, I have noticed that when I reset the MCU (via the 5-pin SWD interface) and stop at the reset vector, the RUNSTATUS register in the WDT has the value &amp;#39;1&amp;#39; i.e. WDT is enabled. This does not match the product specification which states that this register should be &amp;#39;0&amp;#39; at reset.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have reached out to the nRF5 SDK developers about this, and checked up on the internal issue that my colleague Susheel submitted in the other ticket, but there unfortunately does not seem to exist an estimate for when this fix might make it into an SDK release.&lt;/p&gt;
[quote user="RMV"]I really need to know ASAP whether or not this issue is going to be resolved, or there is some workaround outside of the SDK that I can use to get the LFCLK being recognized by the Applicatiion Timer?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt; &lt;/pre&gt;
&lt;p&gt;I have discussed this with some colleagues and I think it comes down to that you will have to make sure that the LFCLK start task is triggered regardless of the WDT status.&lt;br /&gt;You could for example do this through the HAL layer directly:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;...
        nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTART);
...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You can see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35792/nrf_clock--lfclkstat-register-contents-are-not-properly-evaluated-after-a-system-reset-if-rtc-compare-event-1-or-2-are-used"&gt;the detailed explanation in this ticket&lt;/a&gt;.&lt;br /&gt;Try this, and let me know if it resolves the issue you are seeing.&lt;br /&gt;&lt;br /&gt;By&amp;nbsp;the way, are you aware of&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/anomaly_832_132.html"&gt;the Errata 132 for the nRF52832&lt;/a&gt;? My colleague Håkon mentions its significance in the referenced ticket as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/370777?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 22:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29554448-a305-4eee-840f-7e5cbe4f250a</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi Karl&lt;/p&gt;
&lt;p&gt;I really need to know ASAP whether or not this issue is going to be resolved, or there is some workaround outside of the SDK that I can use to get the LFCLK being recognized by the Applicatiion Timer?&lt;/p&gt;
&lt;p&gt;Also, any clues on the hardware anamoly I noted below, in my update from a few days ago?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/369859?ContentTypeID=1</link><pubDate>Sun, 29 May 2022 17:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2609b5-fe30-416f-b36f-b38ef9abb482</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;FYI, I have noticed that when I reset the MCU (via the 5-pin SWD interface) and stop at the reset vector, the RUNSTATUS register in the WDT has the value &amp;#39;1&amp;#39; i.e. WDT is enabled. This does not match the product specification which states that this register should be &amp;#39;0&amp;#39; at reset. &lt;/p&gt;
&lt;p&gt;Later on this bit is tested (in the source files associated with NRF clock driver)&amp;nbsp; to determine the status of the WDT component, and since it returns a TRUE the run status of the LFCLOCK is set/assumed to be ON.&lt;/p&gt;
&lt;p&gt;I suspect this is what is causing my issues but I need to dig a bit further into this.&lt;/p&gt;
&lt;p&gt;I also vaguely recall another ticket refer to this same issue and simply comment out this fragment of code as a local workaround for that user&amp;#39;s use case.&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/369857?ContentTypeID=1</link><pubDate>Sun, 29 May 2022 13:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e965410-83fd-49dc-93cb-b068b61239eb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, RVM&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="RMV"]No, I am not using the FreeRTOS -- just provided the link to describe an almost identical problem situation that I am encountering.[/quote]
&lt;p&gt;Thank you for clarifying - this is very helpful for me to know.&lt;br /&gt;&lt;br /&gt;I will ask my colleague Susheel if there has been any progress in the issue, as you also have asked in the other ticket.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/368863?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 15:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a3c7f6-dac5-4e8a-8983-2e1dd7a1edcf</guid><dc:creator>RVM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts/368799#368799"]Aha - I see. I was not aware that you were using FreeRTOS + the watchdog module. I see that an update has been requested in the ticket, and that my colleague Susheel will be back in office next week. You can subscribe to the ticket in order to receive a notification whenever there is an update, if you would like.[/quote]
&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;No, I am not using the FreeRTOS -- just provided the link to describe an almost identical problem situation that I am encountering.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RVM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/368799?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 10:42:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef4faab6-97d6-49cb-b07b-98ebd5e8c2eb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, RMV&lt;br /&gt;&lt;br /&gt;Thank you for your extreme patience with this.&lt;/p&gt;
[quote user="RMV"]On a different, but related, note I want to understand what it means when the documentation says:&lt;br /&gt;&amp;quot;The RTC library does not directly start or stop the RTC but rather schedules a request to do so in the future&amp;quot;.[/quote]
&lt;p&gt;Could you pinpoint exactly where in the documentation you read this, so that I may take a look?&lt;br /&gt;The app timer definitively starts the RTC (if it is not already running), but perhaps this is referring to the case &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/sd_resource_reqs/hw_block_interrupt_vector.html"&gt;when the SoftDevice is present and enabled, in which the application looses all access to direct clock control, and may only &amp;#39;request&amp;#39; clock operations through the SoftDevice API&lt;/a&gt;?&lt;/p&gt;
[quote user="RMV"]There was, however, one more thing that I had to take care of before I got this fully working and that had to do with a bug in the RTC clock driver in SDK v17.x.y, as documented here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63998/freertos-wdt-sdk17-problem"&gt;here&lt;/a&gt;[/quote]
&lt;p&gt;Aha - I see. I was not aware that you were using FreeRTOS + the watchdog module. I see that an update has been requested in the ticket, and that my colleague Susheel will be back in office next week. You can subscribe to the ticket in order to receive a notification whenever there is an update, if you would like.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367891?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 16:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e132f39-6276-4be6-a74b-fde91bd3e16a</guid><dc:creator>RVM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts/367798#367798"]I am happy to hear that you were able to pinpoint the root of your issue, and that it is now working as intended, great! :)[/quote]
&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;There was, however, one more thing that I had to take care of before I got this fully working and that had to do with a bug in the RTC clock driver in SDK v17.x.y, as documented here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63998/freertos-wdt-sdk17-problem"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367798?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 10:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af9ceb7-63f0-4242-8a52-9417422cf5af</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, RVM&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;br /&gt;I am happy to hear that you were able to pinpoint the root of your issue, and that it is now working as intended, great! :)&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367693?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 15:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d189e9e0-8c48-4144-9b1f-277d9b65af0a</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;On a different, but related, note I want to understand what it means when the documentation says:&lt;br /&gt;&amp;quot;The RTC library does not directly start or stop the RTC but rather schedules a request to do so in the future&amp;quot;.&lt;/p&gt;
&lt;p&gt;What am I missing here? If the call to start the timer does not actually start the RTC then how would the RTC even be prepared to generate an IRQ that a scheduler can work with and use &amp;#39;in the future&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367485?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 19:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35249ba4-3b44-45dc-a412-71db8ab6b0b8</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;Thanks for all your insights and help.&lt;/p&gt;
&lt;p&gt;I finally figured out the issue with my new design -- I was initializing the scheduler twice.&lt;/p&gt;
&lt;p&gt;RVM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367248?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 17:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd42a832-d6a1-4429-933e-0d2020f013fe</guid><dc:creator>RVM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts/366615#366615"]If the timer is set up correctly to trigger a compare event every 1 second it will wake up the device from the SYSTEM_ON sleep to process the event. Once the event has been processed it will go back to sleep, unless there are other events or functions that need processing before it does.[/quote]
&lt;p&gt;I did not go through any steps to set up the core RTC module itself -- I assumed that the app timer module would take care of it when it is initialized.&lt;/p&gt;
&lt;p&gt;If that is not the case, what exactly are the steps to set up the RTC? I did not realize that simply enabling the RTC would not be enough and that I have to set up extra &amp;#39;comparators&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367247?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 17:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5301a619-8135-4f87-ba9e-5f983ffa183b</guid><dc:creator>RVM</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/87642/app_timer_v2-does-not-appear-to-generate-timer-interrupts/367140#367140"]On a sidenote, I notice that the naming in the supplied code does not match exactly - is this not the exact code you are running / is it pseudocode just to highlight the steps you are taking?&lt;br /&gt;[/quote]
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yeah, it looks like this is not exactly what I use to test -- the timer handler names are identical in my build &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367140?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 10:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8dd4135-d842-409d-973e-f28e23d89669</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="RMV"]The two things (and there may be more) that come to mind are that without the above code, either the RTC module is not fully functional or the Timer IRQ does not have a high enough priority to be noticed by the NVIC.[/quote]
&lt;p&gt;The call to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__sdh.html#ga574d17fdf1c59dec6355e3f525c484ec"&gt;nrf_sdh_enable_request()&lt;/a&gt;&amp;nbsp;attempts to start the SoftDevice.&lt;br /&gt;The &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/sd_resource_reqs/hw_block_interrupt_vector.html"&gt;RTC0 instance will be blocked when the SoftDevice is enabled&lt;/a&gt;, but this should not matter to you since you are using the RTC1 instance.&lt;br /&gt;Unfortunately I do not notice anything off about the steps you take to initialize and start the RTC.&lt;br /&gt;Taking a closer look at the app_timer2.c implementation it seems to me that the instance used - RTC1 - is hardcoded, and not based on the&amp;nbsp;&lt;span&gt;APP_TIMER_V2_RTC1_ENABLED define.&lt;br /&gt;&lt;/span&gt;I will create an internal ticket to have this examined more closely.&lt;br /&gt;&lt;br /&gt;Could you also share with me the APP_TIMER define&amp;#39;s from your sdk_config.h?&lt;br /&gt;&lt;br /&gt;On a sidenote, I notice that the naming in the supplied code does not match exactly - is this not the exact code you are running / is it pseudocode just to highlight the steps you are taking?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/367018?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 18:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0a6dbc-dca3-4d09-9575-a4451acc293c</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;My experimentation indicates that all I need to do to get the timer to trigger the IRQ as desired is to &amp;#39;enable the SD Handler&amp;quot; as below just before starting the timer....&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (!nrf_sdh_is_enabled()) {
  lcl_err_code = nrf_sdh_enable_request();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The two things (and there may be more) that come to mind are that without the above code, either the RTC module is not fully functional or the Timer IRQ does not have a high enough priority to be noticed by the NVIC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/366777?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 17:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d18e8574-35cd-485f-8cef-0f86208209c1</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;When I do not define the symbol &amp;#39;APP_TIMER_V2&amp;#39; then this is the design pattern &lt;br /&gt;that has always worked for me with SDK 15.3.0, 16.0.0 and 17.0.1.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*   *** NEVER GETS CALLED WHEN USING SDK 17.2.0 AND 
     &amp;#39;APP_TIMER_V2&amp;#39; AND &amp;#39;APP_TIMER_V2_RTC1_ENABLED&amp;#39; ARE DEFINED *** */
void PCT_CORE_TimerHandler_OneSecond(void *timer_data)
{
  // Basic tick counter.
  static uint32_t ticks = 0;
  ticks++;
  return;
}


APP_TIMER_DEF(OneSecond_TimerId);

/* Initialize timer module */
lcl_err_code = app_timer_init();
APP_ERROR_CHECK(lcl_err_code);  // No errors observed
  
/* Create the Reed Switch activation timer */
lcl_err_code = app_timer_create(&amp;amp;OneSecond_TimerId, APP_TIMER_MODE_REPEATED, TimerHandler_OneSecond);
APP_ERROR_CHECK(lcl_err_code); // No errors observed.



#define TIMER_START(T,D)        { ret_code_t lcl_err_code; lcl_err_code = app_timer_start(T, APP_TIMER_TICKS(D), NULL); APP_ERROR_CHECK(lcl_err_code); }

TIMER_START(PCT_CORE_OneSecond_TimerId, 1000); &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am not sure what other steps are required for &amp;#39;configuration and initialization&amp;#39; of this design.&lt;/p&gt;
&lt;p&gt;I also see no difference whether or not I use the scheduler to manage the timer&amp;#39;s functionality&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_TIMER_V2 does not appear to generate timer interrupts</title><link>https://devzone.nordicsemi.com/thread/366615?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 08:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a51279-12b6-4035-b0ea-7aebd38e07dc</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello RVM,&lt;/p&gt;
[quote user=""]My first question is:&amp;nbsp; I do not quite understand &amp;quot;&lt;span style="text-decoration:underline;"&gt;&lt;em&gt;why do I need to enable the RTC1&lt;/em&gt;&lt;/span&gt;&amp;quot;?&amp;nbsp; -- and when I try to build without using this symbol then I get a build error that there is no RTC instance defined in the build.[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_timer.html"&gt;The App timer library is based on the RTC1, which is why you will need to enable this RTC instance.&lt;/a&gt;&lt;/p&gt;
[quote user=""]My next comment (based on observations) is that when I enable RTC1 then I notice that the processor enters the nrf_power_mgmt phase but never fires the timer handler that I expect to be triggered every 1 second. I have validated that[/quote]
&lt;p&gt;Could you show me the code for the configuration and initialization of your app timer instance?&lt;br /&gt;If the timer is set up correctly to trigger a compare event every 1 second it will wake up the device from the SYSTEM_ON sleep to process the event. Once the event has been processed it will go back to sleep, unless there are other events or functions that need processing before it does.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>