<?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>nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91098/nrf5-sdk-17-1-0-app_timer2-issue</link><description>Hello I recently updated my project from 17.0.2 to 17.1.0. I found a problem while checking the full functionality after the update. In my project, there is a buzzer for an alarm, and it was confirmed that the operation time was doubled. I&amp;#39;m using app_timer2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2023 08:10:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91098/nrf5-sdk-17-1-0-app_timer2-issue" /><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/435633?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 08:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be8df16-4c84-46d9-a8e5-c8f8d36d1e60</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Brady,&amp;nbsp;&lt;br /&gt;There isn&amp;#39;t any update on this issue. So the guidance from my last reply still applied.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/435626?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 07:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:018a4d98-8e48-452c-be9a-8607a2c46dae</guid><dc:creator>brady cho</dc:creator><description>&lt;p&gt;The same problem is being reproduced.&lt;br /&gt;Has the cause of the problem been analyzed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/405399?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 08:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a489ef1-83a9-48e5-ac16-bbf91cfc1b47</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Strobotek,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m checking internally to see if there is any update. It doesn&amp;#39;t seem we will have a new release for the SDK soon so you may want to have a look at the workaround I suggested above. Or use SDK v17.0.2 like you are doing now.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/405344?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 22:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:538b30ce-99f2-4e1b-9e10-0e6c253f8c15</guid><dc:creator>strobotek</dc:creator><description>&lt;p&gt;I noticed the same problem an hour ago. My code suddenly stopped working after upgrading the SDK from 17.0.2 to 17.1.0. I suspected it had something to do with the timers, as the blinking sequence of a&amp;nbsp;LED changed.&lt;/p&gt;
&lt;p&gt;My quick and dirty solution was to simply rollback to 17.0.2 version of the SDK, until I find out the cause. Anyway, it&amp;#39;s half an year later and still no official solution to this bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/384252?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 07:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bceb97cc-90fe-4a35-add6-d368661ed78f</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;thank you for your reply.&lt;br /&gt;I solved the issue by creating a timer using single shot mode.&lt;br /&gt;If you find the cause of the problem with the SDK, please share.&lt;br /&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/383923?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 12:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5ab8902-53b6-403d-995e-78b1f7d9a35b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi John,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry for the late response. Jared is on vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have reproduced the issue here and can confirm what you observed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;m suspecting that the change in the library in SDK v17.1 caused the issue. I have reported this to the team and will keep you updated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I found is that if you do&amp;nbsp;APP_TIMER_MODE_SINGLE_SHOT instead of&amp;nbsp;&lt;span&gt;APP_TIMER_MODE_REPEATED you will not see the issue.&amp;nbsp;&lt;br /&gt;Or if you use app_schedule to do the&amp;nbsp;app_timer_stop()&amp;nbsp;app_timer_start() in main context it would work as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would these workarounds good for you ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/383146?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 01:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd25c21f-c773-4d2c-b613-40b79dcf29cc</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;I made a simple led blink example using app_timer2.&lt;br /&gt;Toggle the led in the timer handler and run timer stop -&amp;gt; start.&lt;br /&gt;There are still differences depending on the SDK version.&lt;br /&gt;In 17.1.0 the led blinks slowly.&lt;/p&gt;
&lt;p&gt;Is this a problem with the program?&lt;br /&gt;Please check again.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/17_5F00_1_5F00_0_5F00_220825.zip"&gt;devzone.nordicsemi.com/.../17_5F00_1_5F00_0_5F00_220825.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/17_5F00_0_5F00_2_5F00_220825.zip"&gt;devzone.nordicsemi.com/.../17_5F00_0_5F00_2_5F00_220825.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/383069?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 12:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:530389a8-fd63-4f0f-a4b1-71239ba12525</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I can see, you toggle the LED every time the program enters&amp;nbsp;wrapper_timer_restart() from wrapper_timer_reschedule().&amp;nbsp;&lt;span style="font-family:inherit;"&gt;This will&amp;nbsp;&lt;/span&gt;&lt;strong style="font-family:inherit;"&gt;not&amp;nbsp;&lt;/strong&gt;&lt;span style="font-family:inherit;"&gt;represent the amount of time elapsed before the app timer has reached its timeout as multiple different timers in your program call&amp;nbsp;&lt;span&gt;wrapper_timer_reschedule(). For example,&amp;nbsp;beepClock,&amp;nbsp;alert_majorClock,&amp;nbsp;alert_subClock all call&amp;nbsp;wrapper_timer_reschedule(), which means that all of them will toggle LED1. I think this problem is more related to your program flow then the app timer module itself.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;If you disagree, can you share a much simpler example that only uses the app timer module and toggles a LED and see if you can reproduce a difference between SDK v17.0.2 and v17.1.0?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382984?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 04:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4487ca-ae6a-4cff-9686-f354766544b9</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;I also attach the binary file of 17.1.0ver with the problem.&lt;br /&gt;(softdevice + application .hex file)&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/timer_5F00_ex.hex"&gt;devzone.nordicsemi.com/.../timer_5F00_ex.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382980?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 04:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8aeafa3-2225-405c-9923-2249921300e1</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;hello&lt;br /&gt;It&amp;#39;s terribly strange that you can&amp;#39;t verify.&lt;br /&gt;It is also confirmed with LED control, not PWM control like your example.&lt;br /&gt;Please check the picture and code below again.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/KakaoTalk_5F00_20220824_5F00_131415791.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;17.1.0 ver&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/KakaoTalk_5F00_20220824_5F00_131415791_5F00_01.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;17.0.2 ver&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_17_5F00_1_5F00_0_5F00_220824.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_17_5F00_1_5F00_0_5F00_220824.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_17_5F00_0_5F00_2_5F00_220824.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_17_5F00_0_5F00_2_5F00_220824.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382862?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 09:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f258f76e-3ed6-4686-8436-f1a4e9fe8dae</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I&amp;#39;ve modified the two examples by adding a callback handler to the app timer module, so that I can toggle a GPIO when the app timer starts and when it has completed in the handler. This lets me measure the elapsed time of the app timer.&lt;/p&gt;
&lt;p&gt;Comparing the two:&lt;/p&gt;
&lt;p&gt;SDK v17.02 &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4135.ble_5F00_app_5F00_template_5F00_17_5F00_0_5F00_2.zip"&gt;ble_app_template_17_0_2.zip&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;Using the debugger I check the timeout parameter that is passed to app_timer_start() and see that it&amp;#39;s set to 100 (ms).&amp;nbsp;&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/2548.pastedimage1661239446644v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;By measuring the toggling interval of the GPIO, I see that the timeout time of the application timer corresponds to the timeout that is passed to app_timer_start():&amp;nbsp;&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/4101.pastedimage1661239507483v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SDK v17.1 0 &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2047.ble_5F00_app_5F00_template.zip"&gt;1856.ble_app_template.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using the debugger I check the timeout parameter that is passed to app_timer_start() and see that it&amp;#39;s set to 100(ms):&lt;/span&gt;&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/pastedimage1661246467812v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By measuring the toggling interval of the GPIO, I see that the timeout time of the application timer corresponds to the timeout that is passed to app_timer_start():&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/6320.pastedimage1661246310236v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Result: In both cases I can see and verify that the timeout is set to 100 ms.&amp;nbsp;&lt;br /&gt;I could therefore not reproduce your observations.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382611?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 09:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c82aed1b-6254-499d-a10e-17c4b2bab436</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;I&amp;#39;ve created a new project using version 17.0.2 of ble_app_template.&lt;br /&gt;please check.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_17_5F00_0_5F00_2.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_17_5F00_0_5F00_2.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382601?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 09:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e5a59b-161d-45a8-9f55-c2545e528bd7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Could you also share the same project before the update, meaning SDK v&lt;span&gt;17.0.2, so that I can try to compare your two projects.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382362?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 01:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e29dcd-d04c-438a-b3c1-52fc00c0c30a</guid><dc:creator>John Lee</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1856.ble_5F00_app_5F00_template.zip"&gt;devzone.nordicsemi.com/.../1856.ble_5F00_app_5F00_template.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have created a new project based on ble_app_template.&lt;br /&gt;pca10040 - s132 - ses, NRF52 DK identified a problem.&lt;br /&gt;please check. thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK 17.1.0 app_timer2 issue</title><link>https://devzone.nordicsemi.com/thread/382188?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 09:03:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d30f7bd-1915-4a1a-9e0d-0481b682ca56</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Strange, I haven&amp;#39;t seen this issue. Could you share a minimal example that would reproduce this issue, so that I can reproduce it on my development kit?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>