<?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>zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125085/zephyr-software-timer-cannot-trigger-periodically</link><description>I am using the NRF54L05.When I was using the timer function of the Zephyr software, I created a timer with a 10ms cycle. After my system had been running for a long time (for example, 12 hours), after executing sys_reboot(SYS_REBOOT_COLD);, there was</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Dec 2025 01:11:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125085/zephyr-software-timer-cannot-trigger-periodically" /><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/557032?ContentTypeID=1</link><pubDate>Tue, 16 Dec 2025 01:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efeaed7a-eaeb-484f-bd81-6212b9ab39d4</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;To be honest, I also want to upgrade to the new NCS version. However, I need to use ANT+, and for now I can only develop it in version 2.9.2. I&amp;#39;m looking forward to future updates from Garmin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/557020?ContentTypeID=1</link><pubDate>Mon, 15 Dec 2025 20:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88247c7-93b3-4d8c-b269-0af4a30da27c</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;That is good new! There was a bug in &lt;code&gt;drivers/timer/nrf_grtc_timer.c&lt;/code&gt;, and it looks like &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/91432"&gt;this PR&lt;/a&gt;&amp;nbsp;fixed the issue you are seeing. You may want to upgrade to a newer NCS version, or keep your current solution if it is working for you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Benjamin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/556415?ContentTypeID=1</link><pubDate>Mon, 08 Dec 2025 06:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1486f90a-d6a8-4b40-a9b8-97c79d6a8384</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;HI，&lt;/p&gt;
&lt;p&gt;This duration might not be exactly 12 hours; it could be shorter. However, I haven&amp;#39;t attempted it yet.&lt;/p&gt;
&lt;p&gt;Thaks for the heads up,I tried to clear the GRTC register before the soft reset, and this problem no longer occurred.&lt;/p&gt;
&lt;p&gt;So, can you roughly figure out what caused this problem of mine?&lt;/p&gt;
&lt;p&gt;Is there any other better way to solve the problem during the program initialization?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;bool app_device_researt(void) {
&amp;#160; nrf_grtc_task_trigger(NRF_GRTC, NRF_GRTC_TASK_STOP);
&amp;#160; nrf_grtc_task_trigger(NRF_GRTC, NRF_GRTC_TASK_CLEAR);
&amp;#160; NVIC_SystemReset();
&amp;#160; return true;
}&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/553044?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 14:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:251db312-d4f6-4dac-8ce5-42135a79c2cf</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Thanks. Do you have to wait exactly 12 hours? Try doing the soft reset sooner to see if it changes anything. Also, a soft reset doesn’t clear the GRTC register, but a watchdog timer reset does. Can you check if the issue still occurs after a watchdog timer reset? It would also be helpful if you print the timer values&amp;nbsp;right before and after the resets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552943?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 01:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be1d399-c1d7-4919-a3dd-c3f5ffbf4bb1</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;Thank you very much. This problem has been bothering us for a long time.&lt;/p&gt;
&lt;p&gt;Yes, you are absolutely correct. After this issue occurred, I was unable to fix it by restarting or refreshing the firmware. However, I tried powering off the device, using the recover board, and performing DFU upgrade. All these operations were able to fix the problem. I also attempted to reproduce it on the DK, but it didn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552914?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 13:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3477129-b432-4a0c-b238-a7194371adf6</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;I’d like to forward this to someone who can provide a more detailed answer. Please confirm that I’ve understood your issue correctly.&lt;/p&gt;
&lt;p&gt;You’re using a custom board with the nRF54L05. After the device has been running for about 12 hours and performs a &lt;code&gt;sys_reboot()&lt;/code&gt;, the timer no longer fires&amp;nbsp;as expected. When you call &lt;code&gt;k_timer_remaining_get()&lt;/code&gt; after the issue occurs, it returns an abnormally large remaining time.&lt;/p&gt;
&lt;p&gt;After this issue has occurred, can you fix it by power cycling or reflashing the firmware?&lt;br /&gt;Also, have you been able to reproduce this issue on a DK (&lt;code&gt;nrf54l15dk/nrf54l05&lt;/code&gt;)?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Benjamin&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552880?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 10:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c89944b8-90d8-40c2-8171-669795a19cf0</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;yes，The remaining time is decreasing, and it decreases by 1 second each time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552876?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 09:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:674222f7-c4e9-4db3-9334-e95249b953f1</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Thanks, and do you see this remaining time decrease?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552869?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 09:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463969ae-6cfb-46b8-a306-6d506d1c6ec9</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ddac2d43ebdc44370efb6d2c112075d5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In the main function, I use the k_timer_remaining_get function to query the next expiration time of the clock once every 1 second.&lt;/p&gt;
&lt;p&gt;The log printing time is as follows:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/deccb58e4a171b1bf367d164315e1a67.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552868?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 09:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1046888-1a93-4e8c-985f-58495d7bd2c4</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Do you have any application logs that demonstrate this issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Benjamin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552567?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2025 01:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:130d4ec4-7674-40d1-86f6-81fdbf7525b9</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I apologize for providing incorrect information. After further experiments, it was found that the equipment in the experimental group still had the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552493?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 13:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41032b9e-5c0e-400b-b42a-c6d73e160577</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Sorry for the delay. That’s interesting, but I’m not sure I fully understand the differences. So in one group, the timer worked as expected? Could you share a clear list of what you did differently between the devices that failed and those that didn’t?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Benjamin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552193?ContentTypeID=1</link><pubDate>Thu, 23 Oct 2025 02:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0addba78-5794-4df2-859b-688ec8dad2bb</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Yesterday, I conducted a control experiment. Each group consisted of 5 devices. The periodic timer was initialized and started at the beginning of the main function. Then, a comparison was made with the previous usage method. After one day, all the devices in the control group failed, while all the devices in the experimental group were normal. Could this be related to the channel allocation of GRTC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552109?ContentTypeID=1</link><pubDate>Wed, 22 Oct 2025 01:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5696d4e6-9d04-44c4-a8f7-edba15f1d3c2</guid><dc:creator>hjq</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This problem was discovered during the aging test of the produced equipment. After being left overnight, it was found that 90% of the equipment was unable to operate normally the next day.&lt;/p&gt;
&lt;p&gt;This problem will 90% likely occur if left overnight.&lt;/p&gt;
&lt;p&gt;The equipment was still functioning normally before the sys_reboot (SYS_REBOOT_COLD) operation. During the product development stage, we accidentally discovered that the timer seemed to have a problem of not starting. Later, we no longer used it. In the subsequent development process, we had to send task events precisely at the exact time, and then we could use it again. As expected, this problem occurred again.&lt;/p&gt;
&lt;p&gt;Finally, I would like to add that the SDK version I used was 2.9.2. I also employed ANT and BLE.&lt;/p&gt;
&lt;p&gt;Here is my&amp;nbsp;&lt;span&gt;expiration function:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void delay_timer_handler(struct k_timer *timer) {
  static uint8_t cnt = 0;
  // printk(&amp;quot;1\n&amp;quot;);
  cnt++;
  if (cnt &amp;gt;= 100) {
    cnt = 0;
    k_event_post(&amp;amp;light_event, LIGHT_TIME_1S_EVENT | LIGHT_TIME_EVENT);
  } else
    k_event_post(&amp;amp;light_event, LIGHT_TIME_EVENT);
}&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr software timer cannot trigger periodically.</title><link>https://devzone.nordicsemi.com/thread/552052?ContentTypeID=1</link><pubDate>Tue, 21 Oct 2025 11:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36ecd0eb-21ad-4e5e-b156-cb21e4e94a66</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have some follow up questions before we proceed:&lt;/p&gt;
[quote user=""]there was a probability[/quote]
&lt;p&gt;What would you estimate this probability to be? How many times have you encountered this issue?&lt;/p&gt;
&lt;p&gt;Does this happen only when your system has run for 12h + and then right after&amp;nbsp;&lt;span&gt;sys_reboot(SYS_REBOOT_COLD) ?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Have you encountered the issue using the timer with a different period?&lt;br /&gt;&lt;br /&gt;What&amp;nbsp;is going on in your expiration function?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Benjamin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>